Staging: i4l: pcbit: edss1: Use !x instead of x == NULL.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Sun, 20 Mar 2016 11:19:02 +0000 (16:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
Use !x instead of x == NULL.

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/i4l/pcbit/edss1.c

index b2262ba..e72c164 100644 (file)
@@ -254,7 +254,7 @@ static void pcbit_fsm_timer(unsigned long data)
 
        dev = chan2dev(chan);
 
-       if (dev == NULL) {
+       if (!dev) {
                printk(KERN_WARNING "pcbit: timer for unknown device\n");
                return;
        }