]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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 b2262ba6f0c9a6b9f5d5b2b82db16a8aecd0d633..e72c16420712c0a00cc9be91570503a921437c7c 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;
        }