mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
[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:
parent
28d5bdbe5c
commit
23c7d71341
1 changed files with 2 additions and 2 deletions
|
@ -647,7 +647,7 @@ static int __init lirc_parallel_init(void)
|
|||
goto exit_device_put;
|
||||
|
||||
pport = parport_find_base(io);
|
||||
if (pport == NULL) {
|
||||
if (!pport) {
|
||||
pr_notice("no port at %x found\n", io);
|
||||
result = -ENXIO;
|
||||
goto exit_device_put;
|
||||
|
@ -656,7 +656,7 @@ static int __init lirc_parallel_init(void)
|
|||
pf, kf, lirc_lirc_irq_handler, 0,
|
||||
NULL);
|
||||
parport_put_port(pport);
|
||||
if (ppdevice == NULL) {
|
||||
if (!ppdevice) {
|
||||
pr_notice("parport_register_device() failed\n");
|
||||
result = -ENXIO;
|
||||
goto exit_device_put;
|
||||
|
|
Loading…
Reference in a new issue