Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23c7d713 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 28d5bdbe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;