diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-08-25 22:49:46 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-04 19:44:52 +0300 |
commit | 740134960811bdeadaf52d6155d8fea97470dcda (patch) | |
tree | 1c14f727087442ce65789bf4eefc4254b7081e5c /drivers/tty/serial/68328serial.c | |
parent | 09557c0169d20585a12e2900fe6d00b5128e5ba8 (diff) | |
download | linux-740134960811bdeadaf52d6155d8fea97470dcda.tar.xz |
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: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/68328serial.c')
-rw-r--r-- | drivers/tty/serial/68328serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/68328serial.c b/drivers/tty/serial/68328serial.c index 748c18f8c8cd..9ba0c9333078 100644 --- a/drivers/tty/serial/68328serial.c +++ b/drivers/tty/serial/68328serial.c @@ -560,8 +560,8 @@ static void rs_fair_output(void) struct m68k_serial *info = &m68k_soft[0]; char c; - if (info == 0) return; - if (info->xmit_buf == 0) return; + if (info == NULL) return; + if (info->xmit_buf == NULL) return; local_irq_save(flags); left = info->xmit_cnt; |