diff options
Diffstat (limited to 'kernel/drivers/usb/mon/mon_stat.c')
-rw-r--r-- | kernel/drivers/usb/mon/mon_stat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/drivers/usb/mon/mon_stat.c b/kernel/drivers/usb/mon/mon_stat.c index ebd6189a5..5388a339c 100644 --- a/kernel/drivers/usb/mon/mon_stat.c +++ b/kernel/drivers/usb/mon/mon_stat.c @@ -28,7 +28,8 @@ static int mon_stat_open(struct inode *inode, struct file *file) struct mon_bus *mbus; struct snap *sp; - if ((sp = kmalloc(sizeof(struct snap), GFP_KERNEL)) == NULL) + sp = kmalloc(sizeof(struct snap), GFP_KERNEL); + if (sp == NULL) return -ENOMEM; mbus = inode->i_private; |