]> asedeno.scripts.mit.edu Git - linux.git/commit
regulator: vexpress: Use PTR_ERR_OR_ZERO() to simplify code
authorzhengbin <zhengbin13@huawei.com>
Mon, 18 Nov 2019 10:59:22 +0000 (18:59 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 18 Nov 2019 12:58:24 +0000 (12:58 +0000)
commit1d7c4c115f7a835fec387d7f61767781381db5db
tree0ddff6c42e3d23c63d0d815f7ff65b033a1fc90e
parenta4bb429811bd4a5be94873ae218062c83c476ed9
regulator: vexpress: Use PTR_ERR_OR_ZERO() to simplify code

Fixes coccicheck warning:

drivers/regulator/vexpress-regulator.c:78:1-3: WARNING: PTR_ERR_OR_ZERO can be used

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Link: https://lore.kernel.org/r/1574074762-34629-1-git-send-email-zhengbin13@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/vexpress-regulator.c