mirror of https://gitee.com/openkylin/linux.git
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:
parent
1fed320aae
commit
2c768b8bfb
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue