diff options
author | Miquel Raynal <[email protected]> | 2021-03-03 09:46:34 +0100 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2021-03-11 11:57:13 +0100 |
commit | c95310e1b33eae9767af9698aa976d5301f37203 (patch) | |
tree | a76c56c76103aef5c636feaab643ec55f18830d8 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 2d751203aacf86a1b301a188d8551c7da91043ab (diff) |
mtd: parsers: qcom: Fix error condition
qcom_smem_get() does not return NULL, and even if it did, the NULL
condition is usually not an error but a success condition and should
not trigger an error trace.
Let's replace IS_ERR_OR_NULL() by IS_ERR().
This fixes the following smatch warning:
drivers/mtd/parsers/qcomsmempart.c:109 parse_qcomsmem_part() warn: passing zero to 'PTR_ERR'
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Fixes: 803eb124e1a6 ("mtd: parsers: Add Qcom SMEM parser")
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions