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-13 16:30:41 +05:30 committed by Greg Kroah-Hartman
parent 1fed320aae
commit 2c768b8bfb
1 changed files with 1 additions and 1 deletions

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);