Subject: [PATCH-next] pcmcia: fix sparse integer as NULL pointer warning

From: Harvey Harrison <[email-masked]>
Date: Wed, 23 Jul 2008 18:34:08 -0700

drivers/pcmcia/rsrc_nonstatic.c:278:30: warning: Using plain integer as NULL pointer

Signed-off-by: Harvey Harrison <[email-masked]>
---
 drivers/pcmcia/rsrc_nonstatic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/pcmcia/rsrc_nonstatic.c b/drivers/pcmcia/rsrc_nonstatic.c
index d0c1d63..31e6a03 100644
--- a/drivers/pcmcia/rsrc_nonstatic.c
+++ b/drivers/pcmcia/rsrc_nonstatic.c
@@ -275,7 +275,7 @@ static int readable(struct pcmcia_socket *s, struct resource *res,
 		destroy_cis_cache(s);
 	}
 	s->cis_mem.res = NULL;
-	if ((ret != 0) || (count == 0))
+	if ((ret != 0) || (count == NULL))
 		return 0;
 	return 1;
 }
-- 
1.5.6.4.570.g052e