summaryrefslogtreecommitdiffstats
path: root/drivers/sbus
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-06-16 03:46:54 -0700
committerDavid S. Miller <davem@davemloft.net>2009-06-16 04:56:57 -0700
commit32e5897da1fc5180aa817c81e6aca74a8f6b6957 (patch)
tree7f2460a40386a7367794ba1d60134d0dafdf732f /drivers/sbus
parent6ac5c610828c051666f667d2bdbd51fc15a59e98 (diff)
downloadblackbird-obmc-linux-32e5897da1fc5180aa817c81e6aca74a8f6b6957.tar.gz
blackbird-obmc-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')
-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;
OpenPOWER on IntegriCloud