]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
rtc: gemini: fix ptr_ret.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Fri, 31 Jul 2015 09:31:04 +0000 (15:01 +0530)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 5 Sep 2015 11:19:09 +0000 (13:19 +0200)
commit202cc98acf96de1c3897194e1ed5ae1c80c8b0f3
tree38e7417219078f348fe241b235152bf8cc53045e
parente7cba884af366f49ab7b7f5157e690357addebba
rtc: gemini: fix ptr_ret.cocci warnings

drivers/rtc/rtc-gemini.c:151: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

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-gemini.c