Skip to content

Commit

Permalink
openprom: Squelch useless GCC warning.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Jun 16, 2009
1 parent 6ac5c61 commit 32e5897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/sbus/char/openprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 32e5897

Please sign in to comment.