summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-ds1511.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2016-02-06 14:37:33 (GMT)
committerJacek Anaszewski <j.anaszewski@samsung.com>2016-03-14 08:22:20 (GMT)
commit2d88a331e48095cf60ad9bdf3177bd401bf99727 (patch)
tree76d06c4421982a56793a5edf97c021b9514243fc /drivers/rtc/rtc-ds1511.c
parentc9eec908a1ec7829497a0914514badec95cc8461 (diff)
downloadlinux-2d88a331e48095cf60ad9bdf3177bd401bf99727.tar.xz
leds: leds-gpio: Fix return value check in create_gpio_led()
In case of error, the function gpio_to_desc() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'drivers/rtc/rtc-ds1511.c')
0 files changed, 0 insertions, 0 deletions