mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 20:48:49 +08:00
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>
This commit is contained in:
parent
6ac5c61082
commit
32e5897da1
@ -303,7 +303,7 @@ static int openprom_sunos_ioctl(struct inode * inode, struct file * file,
|
|||||||
struct device_node *dp)
|
struct device_node *dp)
|
||||||
{
|
{
|
||||||
DATA *data = file->private_data;
|
DATA *data = file->private_data;
|
||||||
struct openpromio *opp;
|
struct openpromio *opp = NULL;
|
||||||
int bufsize, error = 0;
|
int bufsize, error = 0;
|
||||||
static int cnt;
|
static int cnt;
|
||||||
void __user *argp = (void __user *)arg;
|
void __user *argp = (void __user *)arg;
|
||||||
|
Loading…
Reference in New Issue
Block a user