Files
linux/net
David S. Miller d984e6197e dccp: Fix compile warning in probe code.
Commit 1386be55e3 ("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>
2011-12-01 14:45:49 -05:00
..
2011-11-22 16:43:32 -05:00
2011-03-17 11:59:32 +11:00
2011-10-13 16:05:07 -04:00
2011-11-22 16:43:32 -05:00
2011-11-08 13:59:44 -05:00
2011-09-16 19:20:20 -04:00
2011-11-29 00:23:13 -05:00
2011-11-14 00:10:50 -05:00
2011-11-22 16:43:32 -05:00
2011-11-22 16:43:32 -05:00
2011-11-29 12:46:19 -05:00
2011-07-05 15:26:57 -04:00