]> git.decadent.org.uk Git - nfs-utils.git/commit
rpc.statd: Clean up: replace "if (!(foo = rtnl))".
authorChuck Lever <chuck.lever@oracle.com>
Fri, 26 Sep 2008 20:13:45 +0000 (16:13 -0400)
committerSteve Dickson <steved@redhat.com>
Fri, 26 Sep 2008 20:13:45 +0000 (16:13 -0400)
commit9b13713fa592b02da0dc79c5505fdf7002155d13
tree57249ffcb070f887226618c07e521194ad6f6c8f
parent2fd04076023d696e5e7ffa17998e9d32990e57bf
rpc.statd: Clean up: replace "if (!(foo = rtnl))".

Static code checkers flag this kind of thing because it's easy to
confuse with "if (!(foo == rtnl))".  In one of these cases, the
combination of evaluation and assignment isn't even necessary.

While we are in the neighborhood, remove an extra argument to note() that is
not called for in the passed-in format string.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/statd/callback.c
utils/statd/monitor.c