summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJoshua Kinard <kumba@gentoo.org>2015-02-27 23:51:59 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-28 17:57:51 (GMT)
commitb00eeaedece2e8cb1607cb015f10e572e2607c49 (patch)
tree1e3a18d522dbcf31ac7119e882ed39bee96ba402 /net
parent957ed60b53b519064a54988c4e31e0087e47d091 (diff)
downloadlinux-b00eeaedece2e8cb1607cb015f10e572e2607c49.tar.xz
drivers/rtc/rtc-ds1685.c: fix conditional in ds1685_rtc_sysfs_time_regs_{show,store}
Fix a conditional statement checking for NULL in both ds1685_rtc_sysfs_time_regs_show and ds1685_rtc_sysfs_time_regs_store that was using a logical AND when it should be using a logical OR so that we fail out of the function properly if the condition ever evaluates to true. Fixes: aaaf5fbf56f1 ("rtc: add driver for DS1685 family of real time clocks") Signed-off-by: Joshua Kinard <kumba@gentoo.org> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions