[media] staging: media: lirc: replace NULL comparisons with !var

A NULL comparison can be written as if (var) or if (!var).
Reported by checkpatch.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
Sudip Mukherjee 2015-12-18 11:05:25 -02:00 committed by Mauro Carvalho Chehab
parent 28d5bdbe5c
commit 23c7d71341
1 changed files with 2 additions and 2 deletions

View File

@ -647,7 +647,7 @@ static int __init lirc_parallel_init(void)
goto exit_device_put; goto exit_device_put;
pport = parport_find_base(io); pport = parport_find_base(io);
if (pport == NULL) { if (!pport) {
pr_notice("no port at %x found\n", io); pr_notice("no port at %x found\n", io);
result = -ENXIO; result = -ENXIO;
goto exit_device_put; goto exit_device_put;
@ -656,7 +656,7 @@ static int __init lirc_parallel_init(void)
pf, kf, lirc_lirc_irq_handler, 0, pf, kf, lirc_lirc_irq_handler, 0,
NULL); NULL);
parport_put_port(pport); parport_put_port(pport);
if (ppdevice == NULL) { if (!ppdevice) {
pr_notice("parport_register_device() failed\n"); pr_notice("parport_register_device() failed\n");
result = -ENXIO; result = -ENXIO;
goto exit_device_put; goto exit_device_put;