diff options
author | kbuild test robot <fengguang.wu@intel.com> | 2015-10-26 19:26:11 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-10-27 10:00:43 +0100 |
commit | fc18111b8973e2c7cc0c2ba6183795e5266ddff7 (patch) | |
tree | 36eae7aea7586554e73bcf5de55f5642a2b8dfff /drivers/video/backlight/pwm_bl.c | |
parent | backlight: pwm: Reject legacy PWM request for device defined in DT (diff) | |
download | linux-fc18111b8973e2c7cc0c2ba6183795e5266ddff7.tar.xz linux-fc18111b8973e2c7cc0c2ba6183795e5266ddff7.zip |
backlight: pm8941-wled: Fix ptr_ret.cocci warnings
drivers/video/backlight/pm8941-wled.c:404:1-3: WARNING: PTR_ERR_OR_ZERO can be used
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
Generated by: scripts/coccinelle/api/ptr_ret.cocci
Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/video/backlight/pwm_bl.c')
0 files changed, 0 insertions, 0 deletions