freebsd-dev/sys/dev/pccard
Warner Losh e8c3bb6966 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
2005-02-17 21:05:04 +00:00
..
card_if.m Remove more deadwood that never got implemented in NEWCARD, since NEWCARD 2005-02-15 02:54:53 +00:00
pccard_cis_quirks.c Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
pccard_cis.c memspace is set to some value by masking off bits. When these bits 2005-02-17 21:05:04 +00:00
pccard_cis.h Some older PC Cards have a weird format for FUNCE tuples. They appear 2005-01-21 02:11:48 +00:00
pccard.c Add an XXX comment about string quoting. 2005-02-16 01:03:30 +00:00
pccarddevs o It turns out that most of the ne-2000 cards that I have got real unhappy 2005-02-14 22:27:03 +00:00
pccardreg.h Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
pccardvar.h Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
power_if.m Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00