]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: perf: marvell_cn10k: fix an IS_ERR() vs NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 17 Dec 2021 14:59:08 +0000 (17:59 +0300)
committerWill Deacon <will@kernel.org>
Tue, 4 Jan 2022 13:58:17 +0000 (13:58 +0000)
commit20559b995311a64d41dc928857a2dcad837fd088
tree8481af3442930bad8674a97b00ea54bfff56a3a0
parentbba1b2989c0f39f5d224762c5303f6817c642ec0
drivers: perf: marvell_cn10k: fix an IS_ERR() vs NULL check

The devm_ioremap() function does not return error pointers.  It returns
NULL.

Fixes: 398d505b88ea ("drivers: perf: Add LLC-TAD perf counter support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20211217145907.GA16611@kili
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/marvell_cn10k_tad_pmu.c