diff options
author | Richard Zhao <richard.zhao@freescale.com> | 2012-09-18 16:14:59 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-21 09:53:16 -0700 |
commit | 034dc4db6fefa8b9b55a20e816a05f132fdd56bc (patch) | |
tree | 9f90ed40e8c427ecdc8f155f3e7773846d8d62d7 /virt | |
parent | 0a86a86b92312dacf74008ea1e1f4df20362f9f4 (diff) |
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>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions