freebsd-skq/sys
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
..
alpha Backout previous change (disabling of security checks for signals delivered 2005-02-13 17:37:20 +00:00
amd64 MFi386 rev 1.61: Fix a few bugs in the legacy cpu attachment ivars. 2005-02-15 07:26:28 +00:00
arm Define NIRQ to 64 for CPU_ARM9, because Cirrus Logic EP93XX cores provides 2005-02-13 18:26:31 +00:00
boot Document the new default init_path. 2005-02-17 11:14:45 +00:00
bsm Add a stub audit_kevents.h, which defines exactly one audit event: 2005-02-02 14:27:36 +00:00
cam Remove a shadow declaration of 'error' that caused certain tests to be 2005-02-12 04:51:19 +00:00
coda Remove vop_destroyvobject() initialization. 2005-02-07 08:04:24 +00:00
compat Remove redundant label. 2005-02-16 21:24:04 +00:00
conf Add support for Windows/x86-64 binaries to Project Evil. 2005-02-16 05:41:18 +00:00
contrib Fix inteface clear time. pf printed "Thu Jan 1 09:00:01 1970" 2005-02-17 03:36:31 +00:00
crypto Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
ddb Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
dev memspace is set to some value by masking off bits. When these bits 2005-02-17 21:05:04 +00:00
doc
fs Introduce vx_wait{l}() and use it instead of home-rolled versions. 2005-02-17 10:49:51 +00:00
gdb /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 18:27:30 +00:00
geom In case of drive errors, don't close the associated consumer and 2005-02-17 16:08:36 +00:00
gnu Make a SYSCTL_NODE static 2005-02-10 12:23:29 +00:00
i4b /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 22:18:23 +00:00
i386 Correct a few bugs in the legacy cpu attachment. Get the unit from the 2005-02-15 07:21:20 +00:00
ia64 s/descr/oid_descr/ 2005-02-09 04:48:23 +00:00
isa Use the local APIC timer to drive the various kernel clocks on SMP machines 2005-02-08 20:25:07 +00:00
isofs/cd9660 Unbreak a few filesystems for which vnode_create_vobject() wasn't being 2005-01-29 16:23:39 +00:00
kern In accept1(), extend coverage of the socket lock from just covering 2005-02-17 13:00:23 +00:00
libkern Add strspn() to libkern. 2005-02-10 20:39:39 +00:00
modules Add support for Windows/x86-64 binaries to Project Evil. 2005-02-16 05:41:18 +00:00
net Check for non-NULL ac_netgraph field in interface arpcom, instead of 2005-02-14 11:58:54 +00:00
net80211 rev 1.19 fixed wpa supplicant but broke wpa authenticator; when operating 2005-02-10 17:00:48 +00:00
netatalk /* -> /*- for license, minor formatting changes, insert COPYRIGHT into files 2005-01-07 02:35:34 +00:00
netatm Mark netatm and netnatm explicitly as requiring Giant, as they still do. 2005-02-17 14:21:22 +00:00
netgraph Remove a recursion protection, which we inherited from splnet() netgraph times. 2005-02-16 16:00:35 +00:00
netinet Fix for a SACK (receiver) bug where incorrect SACK blocks are 2005-02-16 01:46:17 +00:00
netinet6 Add missed merge of ripcbinfo extern. Given how widely used 2005-02-09 01:12:43 +00:00
netipsec /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
netipx Mark the IPX netisr as MPSAFE so that inbound IPX traffic is processed 2005-01-09 07:34:55 +00:00
netkey fixed an unexpected addr/port matching failure in IPv6 SA management 2005-01-10 13:06:42 +00:00
netnatm Mark netatm and netnatm explicitly as requiring Giant, as they still do. 2005-02-17 14:21:22 +00:00
netncp /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
netsmb /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs4client Remove unused cred arg from nfs_vinvalbuf() and many bogus arguments 2005-01-24 12:31:06 +00:00
nfsclient Drop Giant before calling kthread_exit(). 2005-02-07 18:21:50 +00:00
nfsserver Don't try to create vnode_pager objects on other filesystems vnodes, 2005-01-24 22:09:13 +00:00
opencrypto /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
pc98 Merged from sys/dev/sio/sio.c revision 1.458. 2005-02-11 03:41:34 +00:00
pccard Remove more deadwood that never got implemented in NEWCARD, since NEWCARD 2005-02-15 02:54:53 +00:00
pci Correct the SiS 755 PCI ID. Confirmed against Linux code. 2005-02-14 07:30:04 +00:00
posix4 /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
powerpc Finish the job of sorting all includes and fix the build by including 2005-02-06 01:55:08 +00:00
rpc /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
security Synchronize HEAD copyright/license with RELENG_5 copyright/license: 2005-02-13 13:59:34 +00:00
sparc64 UltraSparc II[e,i] based systems come up with the tick compare register 2005-02-17 00:13:49 +00:00
sys Introduce vx_wait{l}() and use it instead of home-rolled versions. 2005-02-17 10:49:51 +00:00
tools Add VOP_FOO_APV() which takes a pointer to the vop_vector. 2005-02-08 12:54:32 +00:00
ufs - Remove the unused and unsafe ufs_ihashlookup. This function returned a 2005-02-14 20:51:39 +00:00
vm Well, it seems that I pre-maturely removed the "All rights reserved" 2005-02-16 21:45:59 +00:00
Makefile