summaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char/openprom.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-06-16 12:46:54 +0200
committerDavid S. Miller <davem@davemloft.net>2009-06-16 13:56:57 +0200
commit32e5897da1fc5180aa817c81e6aca74a8f6b6957 (patch)
tree7f2460a40386a7367794ba1d60134d0dafdf732f /drivers/sbus/char/openprom.c
parentsparc: replace uses of CPU_MASK_ALL_PTR (diff)
downloadlinux-32e5897da1fc5180aa817c81e6aca74a8f6b6957.tar.xz
linux-32e5897da1fc5180aa817c81e6aca74a8f6b6957.zip
openprom: Squelch useless GCC warning.
drivers/sbus/char/openprom.c: In function ‘openprom_sunos_ioctl’: drivers/sbus/char/openprom.c:306: warning: ‘opp’ may be used uninitialized in this function Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/sbus/char/openprom.c')
-rw-r--r--drivers/sbus/char/openprom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/sbus/char/openprom.c b/drivers/sbus/char/openprom.c
index 124f660a0383..75ac19b1192f 100644
--- a/drivers/sbus/char/openprom.c
+++ b/drivers/sbus/char/openprom.c
@@ -303,7 +303,7 @@ static int openprom_sunos_ioctl(struct inode * inode, struct file * file,
struct device_node *dp)
{
DATA *data = file->private_data;
- struct openpromio *opp;
+ struct openpromio *opp = NULL;
int bufsize, error = 0;
static int cnt;
void __user *argp = (void __user *)arg;