Skip to content
Unverified Commit 1d7c4c11 authored by zhengbin's avatar zhengbin Committed by Mark Brown
Browse files

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarzhengbin <zhengbin13@huawei.com>
Link: https://lore.kernel.org/r/1574074762-34629-1-git-send-email-zhengbin13@huawei.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a4bb4298
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment