Commit 2c768b8b authored by Anchal Jain's avatar Anchal Jain Committed by Greg Kroah-Hartman

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

Remove explicit NULL comparison and write it in its simpler form.
Signed-off-by: default avatarAnchal Jain <anchalj109@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1fed320a
...@@ -120,7 +120,7 @@ int init_module(void) ...@@ -120,7 +120,7 @@ int init_module(void)
int rc; int rc;
pdev = do_pci_probe(); pdev = do_pci_probe();
if (pdev == NULL) if (!pdev)
return -ENODEV; return -ENODEV;
rc = pci_enable_device(pdev); rc = pci_enable_device(pdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment