diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2021-03-05 06:49:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-10 11:34:10 +0300 |
commit | cebeddd6d0d9f839b9df2930b6a768b54913a763 (patch) | |
tree | 6d98f375432b82173214a7a34a6cd8026e9697ef /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 81171e7d31a63e0e7f5c83701f097695e60a12db (diff) | |
download | linux-cebeddd6d0d9f839b9df2930b6a768b54913a763.tar.xz |
serial: liteuart: fix return value check in liteuart_probe()
In case of error, the function devm_platform_get_and_ioremap_resource()
returns ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().
Fixes: 1da81e5562fa ("drivers/tty/serial: add LiteUART driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20210305034929.3234352-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions