staging: media: lirc: lirc_bt829: Remove explicit NULL comparison

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>
This commit is contained in:
Anchal Jain
2016-09-16 09:51:23 +02:00
committed by Greg Kroah-Hartman
parent 1fed320aae
commit 2c768b8bfb
+1 -1
View 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);