staging: media: lirc: lirc_bt829: Remove explicit NULL comparison
authorAnchal Jain <anchalj109@gmail.com>
Tue, 13 Sep 2016 11:00:41 +0000 (16:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Sep 2016 07:51:23 +0000 (09:51 +0200)
Remove explicit NULL comparison and write it in its simpler form.

Signed-off-by: Anchal Jain <anchalj109@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/lirc/lirc_bt829.c

index 44f5655471797e93f4c7419c72aa97b342fd0cef..f7401159ecb3ad3dca4155aa5a92fd0c26b58dc1 100644 (file)
@@ -120,7 +120,7 @@ int init_module(void)
        int rc;
 
        pdev = do_pci_probe();
-       if (pdev == NULL)
+       if (!pdev)
                return -ENODEV;
 
        rc = pci_enable_device(pdev);