diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-10-25 17:07:18 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-29 09:05:21 -0700 |
commit | 2eaaccdeabf34ad70ecb7eb9c4aafa08b13a0e66 (patch) | |
tree | 40ca79a9de0113add562e5e66743d605011286a3 /tools/perf/scripts/python/syscall-counts.py | |
parent | 95fd62a1174306d53f529e73a9713764072cc511 (diff) |
staging: drm/imx: fix return value check in imx_drm_init()
In case of error, the function platform_device_register_simple() returns
ERR_PTR() and never returns NULL. The NULL test in the return value check
should be replaced with IS_ERR().
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions