diff options
-rw-r--r-- | fs/nfs/super.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index e4499d5b51e8..31a11b0e885d 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -2065,11 +2065,6 @@ static int nfs23_validate_mount_data(void *options, | |||
2065 | return NFS_TEXT_DATA; | 2065 | return NFS_TEXT_DATA; |
2066 | } | 2066 | } |
2067 | 2067 | ||
2068 | #if !IS_ENABLED(CONFIG_NFS_V3) | ||
2069 | if (args->version == 3) | ||
2070 | goto out_v3_not_compiled; | ||
2071 | #endif /* !CONFIG_NFS_V3 */ | ||
2072 | |||
2073 | return 0; | 2068 | return 0; |
2074 | 2069 | ||
2075 | out_no_data: | 2070 | out_no_data: |
@@ -2085,12 +2080,6 @@ out_no_sec: | |||
2085 | dfprintk(MOUNT, "NFS: nfs_mount_data version supports only AUTH_SYS\n"); | 2080 | dfprintk(MOUNT, "NFS: nfs_mount_data version supports only AUTH_SYS\n"); |
2086 | return -EINVAL; | 2081 | return -EINVAL; |
2087 | 2082 | ||
2088 | #if !IS_ENABLED(CONFIG_NFS_V3) | ||
2089 | out_v3_not_compiled: | ||
2090 | dfprintk(MOUNT, "NFS: NFSv3 is not compiled into kernel\n"); | ||
2091 | return -EPROTONOSUPPORT; | ||
2092 | #endif /* !CONFIG_NFS_V3 */ | ||
2093 | |||
2094 | out_nomem: | 2083 | out_nomem: |
2095 | dfprintk(MOUNT, "NFS: not enough memory to handle mount options\n"); | 2084 | dfprintk(MOUNT, "NFS: not enough memory to handle mount options\n"); |
2096 | return -ENOMEM; | 2085 | return -ENOMEM; |