]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/stropts.c
Cleaned up a warning from commit 44f09b7
[nfs-utils.git] / utils / mount / stropts.c
index 9695c739c4f53844a65119b3dd049faca2b304ee..c82ddfe2bd9880398b25abc77f9603f881983cfe 100644 (file)
@@ -302,13 +302,6 @@ static int nfs_set_version(struct nfsmount_info *mi)
 
        if (strncmp(mi->type, "nfs4", 4) == 0)
                mi->version = 4;
-       else {
-               unsigned long protocol;
-               if (!nfs_nfs_protocol(mi->options, &protocol))
-                       return 0;
-               if (protocol == NFSPROTO_RDMA)
-                       mi->version = 3;
-       }
 
        /*
         * If we still don't know, check for version-specific
@@ -494,7 +487,6 @@ nfs_rewrite_pmap_mount_options(struct mount_options *options)
        socklen_t mnt_salen = sizeof(mnt_address);
        unsigned long protocol;
        struct pmap mnt_pmap;
-       char *option;
 
        /*
         * Version and transport negotiation is not required