diff options
author | David S. Miller <davem@davemloft.net> | 2011-12-01 14:45:49 -0500 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2015-09-18 13:52:18 +0200 |
commit | 7ec212036c1e1400dace9b1aa64543c91f854705 (patch) | |
tree | 321562eb9a6cb5098bcc306510ef64d0255f5d8c /net/dccp/options.c | |
parent | c5e8459bd607a2b7c9a86ae4414f32ce3a7b3b62 (diff) |
dccp: Fix compile warning in probe code.
commit d984e6197ecd2babc1537f42dc1e676133005cda upstream.
Commit 1386be55e32a3c5d8ef4a2b243c530a7b664c02c ("dccp: fix
auto-loading of dccp(_probe)") fixed a bug but created a new
compiler warning:
net/dccp/probe.c: In function âdccpprobe_initâ:
net/dccp/probe.c:166:2: warning: the omitted middle operand in ?: will always be âtrueâ, suggest explicit middle operand [-Wparentheses]
try_then_request_module() is built for situations where the
"existence" test is some lookup function that returns a non-NULL
object on success, and with a reference count of some kind held.
Here we're looking for a success return of zero from the jprobe
registry.
Instead of fighting the way try_then_request_module() works, simply
open code what we want to happen in a local helper function.
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'net/dccp/options.c')
0 files changed, 0 insertions, 0 deletions