sunrpc: only call test_bit once in svc_xprt_received
authorJeff Layton <jlayton@primarydata.com>
Mon, 1 Dec 2014 18:45:24 +0000 (13:45 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 9 Dec 2014 16:29:14 +0000 (11:29 -0500)
commitacf06a7fa12070abb3eab24fc4bc30e361a7c416
tree46fbb92634614a5b5bf3488d38cb529ff08d3bd1
parentef17af2a817db97d42dd2ec0a425231748e23dbc
sunrpc: only call test_bit once in svc_xprt_received

...move the WARN_ON_ONCE inside the following if block since they use
the same condition.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svc_xprt.c