diff options
author | imp <imp@FreeBSD.org> | 2005-02-17 21:05:04 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-02-17 21:05:04 +0000 |
commit | e5407e02ccbe293aab2f0a0d68909e90857f71a6 (patch) | |
tree | ea61f3944f6e1b1c03e94d082d316c08d3f8cef7 /etc/mail | |
parent | fcb0c9784b57f325a17b1870efc2148a646c3d2a (diff) | |
download | FreeBSD-src-e5407e02ccbe293aab2f0a0d68909e90857f71a6.zip FreeBSD-src-e5407e02ccbe293aab2f0a0d68909e90857f71a6.tar.gz |
memspace is set to some value by masking off bits. When these bits
are equal to PCCARD_TPCE_FS_MEMSPACE_NONE, memspace will be zero, so
testing for this case inside of the if statement results in dead code.
We'd fail to set a value to zero that's already zero (since it is
initialized to 0 indirectly) with this code being there. Well, except
in the very rare case that we have a card that has a defualt entry
that includes a memory space followed by one that has no memory space
(these are extremely rare, I don't recall ever having seen one :-).
Fix this by setting num_memspace to 0 in a more appropriate place.
Submitted by: Coverity Prevent analysis tool
Diffstat (limited to 'etc/mail')
0 files changed, 0 insertions, 0 deletions