]> git.baikalelectronics.ru Git - kernel.git/commit
TTY: serial: move the dereference below the NULL test
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 7 Sep 2012 06:53:49 +0000 (14:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2012 23:33:02 +0000 (16:33 -0700)
commit60a28432e261a1f42a6ccf7695e944949712e642
tree2da51f22ede1fdf28768f40b16e31b85d8697268
parentfe074c0a1f15a82ef891d2bde93dd942d25dc5e8
TTY: serial: move the dereference below the NULL test

The dereference should be moved below the NULL test.

spatch with a semantic match is used to found this.
(http://coccinelle.lip6.fr/)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/ioc3_serial.c
drivers/tty/serial/ioc4_serial.c