summaryrefslogtreecommitdiff
path: root/net/nfc/digital_dep.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-22 12:54:15 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-22 12:54:15 -0800
commit7a308bb3016f57e5be11a677d15b821536419d36 (patch)
treefe38c83c49dfd568b540666948ef78cb9d082c38 /net/nfc/digital_dep.c
parent095cbe66973771fecd8e8b1e8763181363ef703e (diff)
Linux 4.10-rc5
Diffstat (limited to 'net/nfc/digital_dep.c')
0 files changed, 0 insertions, 0 deletions
WARN_ON_RATELIMIT(condition, state)) do_something(); One would expect only 'condition' to affect the 'if', but WARN_ON_RATELIMIT does internally only: WARN_ON((condition) && __ratelimit(state)) So the 'if' is affected by the ratelimiting state too. Fix this by returning 'condition' in any case. Note that nobody uses WARN_ON_RATELIMIT yet, so there is nothing to worry about. But I was about to use it and was a bit surprised. Link: http://lkml.kernel.org/r/20161215093224.23126-1-jslaby@suse.cz Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/dt-bindings/interrupt-controller/irq.h')