Commit 74013496 authored by Fabio Estevam's avatar Fabio Estevam Committed by Greg Kroah-Hartman

serial: 68328serial: Use NULL for pointers

Compare pointer-typed values to NULL rather than 0

The semantic patch that makes this change is available
in scripts/coccinelle/null/badzero.cocci.
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 09557c01
...@@ -560,8 +560,8 @@ static void rs_fair_output(void) ...@@ -560,8 +560,8 @@ static void rs_fair_output(void)
struct m68k_serial *info = &m68k_soft[0]; struct m68k_serial *info = &m68k_soft[0];
char c; char c;
if (info == 0) return; if (info == NULL) return;
if (info->xmit_buf == 0) return; if (info->xmit_buf == NULL) return;
local_irq_save(flags); local_irq_save(flags);
left = info->xmit_cnt; left = info->xmit_cnt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment