From f91fd98be045bec9c18e13110f22dafd44cb84b5 Mon Sep 17 00:00:00 2001 From: Viktor Rosendahl Date: Wed, 2 Jul 2008 16:36:36 +0300 Subject: [PATCH] twl4030-madc: Fix arbitrarily initialized function pointer req is an automatic variable and thus we cannot rely on it being initialized to zero (I am leaving the 0!= NULL discussion aside). Other functions test if this pointer is NULL, in order to determine whether it is a valid address or not. Signed-off-by: Viktor Rosendahl Signed-off-by: Tony Lindgren --- drivers/i2c/chips/twl4030-madc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/chips/twl4030-madc.c b/drivers/i2c/chips/twl4030-madc.c index 72b126b7e7a..743db749914 100644 --- a/drivers/i2c/chips/twl4030-madc.c +++ b/drivers/i2c/chips/twl4030-madc.c @@ -367,6 +367,7 @@ static int twl4030_madc_ioctl(struct inode *inode, struct file *filp, req.channels = (1<