From 2c768b8bfb61e45f736bb042ce3218096f6a1bfd Mon Sep 17 00:00:00 2001 From: Anchal Jain Date: Tue, 13 Sep 2016 16:30:41 +0530 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/media/lirc/lirc_bt829.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/lirc/lirc_bt829.c b/drivers/staging/media/lirc/lirc_bt829.c index 44f565547179..f7401159ecb3 100644 --- a/drivers/staging/media/lirc/lirc_bt829.c +++ b/drivers/staging/media/lirc/lirc_bt829.c @@ -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); -- 2.20.1