diff options
| author | Pan Bian <bianpan2016@163.com> | 2017-04-23 13:43:24 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-13 19:50:01 +0200 |
| commit | fdd8b15f86e2f27823f4e4380bd2d4ddfff58cab (patch) | |
| tree | d70be25761a7084d41624f40260be339fb03f2e7 /tools/perf/scripts/python/netdev-times.py | |
| parent | 5c6230241a858905eadbfcbfa19d715191d9d394 (diff) | |
rtc: snvs: fix an incorrect check of return value
[ Upstream commit 758929005f06f954b7e1c87a1c9fdb44157b228f ]
Function devm_regmap_init_mmio() returns an ERR_PTR on error. However,
in function snvs_rtc_probe() its return value is checked against NULL.
This patch fixes it by checking the return value with IS_ERR().
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
