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)
commit9fd28d3edc99867e07d72cc8d15501bdbff9464e
treeb834b51f3856ccfa23bf330e16ab480d3b3cbb7e
parent700a088178ef77c5f9fb99c58a97c9e505b268a6
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 580b2b8c.

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