From: Anchal Jain Date: Tue, 13 Sep 2016 11:00:41 +0000 (+0530) Subject: staging: media: lirc: lirc_bt829: Remove explicit NULL comparison X-Git-Tag: v4.9-rc1~119^2~586 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2c768b8bfb61e45f736bb042ce3218096f6a1bfd;p=karo-tx-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 Signed-off-by: Greg Kroah-Hartman --- 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);