]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
pcmcia: check for pointer instead of pointer address
authorDominik Brodowski <linux@dominikbrodowski.net>
Sat, 14 Jun 2008 16:51:06 +0000 (18:51 +0200)
committerDominik Brodowski <linux@dominikbrodowski.net>
Tue, 24 Jun 2008 13:33:41 +0000 (15:33 +0200)
commitc1ac02280d76de7aba8a9d43638d0f7d1fd0f820
tree5953c5979844bd06b9d818418febb657be3596dc
parent4cf974c57633e70a8d48f9d40e41cf192c6e062c
pcmcia: check for pointer instead of pointer address

Bug noted by Michael Buesch: checking for the pointer address is always true.
This didn't matter much, for the very first check in pcmcia_release_window()
was for the pointer pointing to something, and the return value is ignored
here. Nonetheless, fix it.

CC: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/pcmcia_resource.c