serial: imx: remove null check of sport in suspend/resume function
authorRichard Zhao <richard.zhao@freescale.com>
Tue, 18 Sep 2012 08:14:59 +0000 (16:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Sep 2012 16:53:16 +0000 (09:53 -0700)
commit034dc4db6fefa8b9b55a20e816a05f132fdd56bc
tree9f90ed40e8c427ecdc8f155f3e7773846d8d62d7
parent0a86a86b92312dacf74008ea1e1f4df20362f9f4
serial: imx: remove null check of sport in suspend/resume function

platform_get_drvdata always retrun a valid value after probe succeed.

It also fixed smatch warnings:
drivers/tty/serial/imx.c:1376 serial_imx_suspend() warn: variable dereferenced before check 'sport' (see line 1372)
drivers/tty/serial/imx.c:1392 serial_imx_resume() warn: variable dereferenced before check 'sport' (see line 1388)

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c