mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 03:59:04 -04:00
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:
committed by
Greg Kroah-Hartman
parent
1fed320aae
commit
2c768b8bfb
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user