]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/nfs/super.c
nfs: prepare to share nfs_set_port
[linux-2.6-omap-h63xx.git] / fs / nfs / super.c
index 1e3558697219fc8ad8544700736571449c3f164a..b99096b8e82720b662e70d9ad1ac5cf2c4ec71e0 100644 (file)
@@ -674,25 +674,6 @@ static void nfs_umount_begin(struct super_block *sb)
                rpc_killall_tasks(rpc);
 }
 
-/*
- * Set the port number in an address.  Be agnostic about the address family.
- */
-static void nfs_set_port(struct sockaddr *sap, unsigned short port)
-{
-       switch (sap->sa_family) {
-       case AF_INET: {
-               struct sockaddr_in *ap = (struct sockaddr_in *)sap;
-               ap->sin_port = htons(port);
-               break;
-       }
-       case AF_INET6: {
-               struct sockaddr_in6 *ap = (struct sockaddr_in6 *)sap;
-               ap->sin6_port = htons(port);
-               break;
-       }
-       }
-}
-
 /*
  * Sanity-check a server address provided by the mount command.
  *