These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / usb / mon / mon_stat.c
index ebd6189..5388a33 100644 (file)
@@ -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;