]> git.baikalelectronics.ru Git - kernel.git/commit
serial: tegra: use NULL instead of 0
authorJingoo Han <jg1.han@samsung.com>
Thu, 8 Aug 2013 08:40:55 +0000 (17:40 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 18:35:32 +0000 (11:35 -0700)
commit2f73229de65bd00c73a84dd7f6916282f98594a8
treee7061a0ba14f31ac1ec02f359d4a5de153882406
parent416d1b89090f4a73b317bef4e51f9676ab43301e
serial: tegra: use NULL instead of 0

'cons' is a pointer; thus NULL should be used instead of 0.
Also, local symbols are staticized.
Fix the following sparse warnings:

drivers/tty/serial/serial-tegra.c:1209:27: warning: Using plain integer as NULL pointer
drivers/tty/serial/serial-tegra.c:1240:29: warning: symbol 'tegra20_uart_chip_data' was not declared. Should it be static?
drivers/tty/serial/serial-tegra.c:1246:29: warning: symbol 'tegra30_uart_chip_data' was not declared. Should it be static?

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial-tegra.c