From: Sachin Kamat Date: Wed, 9 Oct 2013 10:28:29 +0000 (+0530) Subject: staging: lirc: Do not use 0 for NULL pointer X-Git-Tag: next-20131017~19^2~121 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=440ca3f0c56f06676e10333e6a376e89b7683456;p=karo-tx-linux.git staging: lirc: Do not use 0 for NULL pointer Do not use 0 for NULL pointer. Signed-off-by: Sachin Kamat Cc: Jarod Wilson 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 fa31ee7dd6a9..fbbdce4c119f 100644 --- a/drivers/staging/media/lirc/lirc_bt829.c +++ b/drivers/staging/media/lirc/lirc_bt829.c @@ -132,7 +132,7 @@ int init_module(void) atir_driver.minor = -1; atir_driver.code_length = 8; atir_driver.sample_rate = 10; - atir_driver.data = 0; + atir_driver.data = NULL; atir_driver.add_to_buf = atir_add_to_buf; atir_driver.set_use_inc = atir_set_use_inc; atir_driver.set_use_dec = atir_set_use_dec; @@ -159,7 +159,7 @@ void cleanup_module(void) static int atir_init_start(void) { pci_addr_lin = ioremap(pci_addr_phys + DATA_PCI_OFF, 0x400); - if (pci_addr_lin == 0) { + if (!pci_addr_lin) { pr_info("pci mem must be mapped\n"); return 0; }