[PATCH] pcmcia: fix ioctl for GET_STATUS and GET_CONFIGURATION_INFO
authorDaniel Ritz <daniel.ritz-ml@swissonline.ch>
Sun, 30 Jul 2006 10:03:47 +0000 (03:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Jul 2006 20:28:41 +0000 (13:28 -0700)
commitf47ad214926b1dbcc591fd71562e36f1529936b5
treeca96cdcec260e0d8f3b83ae44eec4a3c701dc3a3
parent7ca7b5c42e783b74a57387418bfcfea072fc46d6
[PATCH] pcmcia: fix ioctl for GET_STATUS and GET_CONFIGURATION_INFO

the p_dev == NULL checks are wrong.  the called functions handle a NULL
p_dev on their own.  w/o this patch output of cardcctl status and cardctl
config is broken for cardbus cards or when the slot is empty.

Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/pcmcia/pcmcia_ioctl.c