]> git.karo-electronics.de Git - mv-sheeva.git/commit
SUNRPC: Use conventional switch statement when reclassifying sockets
authorChuck Lever <chuck.lever@oracle.com>
Wed, 20 Oct 2010 15:52:51 +0000 (11:52 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 21 Oct 2010 14:11:46 +0000 (10:11 -0400)
commit4232e8634ad82c5a53389e4016de15a8b15c09c3
treeb834b51f3856ccfa23bf330e16ab480d3b3cbb7e
parenta25e758c5fa1137e1bbc440194e55f7c59177145
SUNRPC: Use conventional switch statement when reclassifying sockets

Clean up.

Defensive coding: If "family" is ever something that is neither
AF_INET nor AF_INET6, xs_reclassify_socket6() is not the appropriate
default action.  Choose to do nothing in that case.

Introduced by commit 6bc9638a.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/xprtsock.c