aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2016-11-22 14:33:44 +0000
committerVineet Gupta <[email protected]>2016-11-30 19:54:25 +0000
commita26b0d4962c7daf91d942a917c71c20e164b687a (patch)
treea20bdb7696eac194d005226eae15fd505258d522 /net/unix/af_unix.c
parentclocksource: Add clockevent support to NPS400 driver (diff)
downloadkernel-a26b0d4962c7daf91d942a917c71c20e164b687a.tar.gz
kernel-a26b0d4962c7daf91d942a917c71c20e164b687a.zip
clocksource: nps: avoid maybe-uninitialized warning
We get a harmless false-positive warning with the newly added nps clocksource driver: drivers/clocksource/timer-nps.c: In function 'nps_setup_clocksource': drivers/clocksource/timer-nps.c:102:6: error: 'nps_timer1_freq' may be used uninitialized in this function [-Werror=maybe-uninitialized] Gcc here fails to identify that IS_ERR() is only true if PTR_ERR() has a nonzero value. Using PTR_ERR_OR_ZERO() to convert the result first makes this obvious and shuts up the warning. Fixes: 0ee4d9922df5 ("clocksource: Add clockevent support to NPS400 driver") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Vineet Gupta <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions