diff options
author | Arnd Bergmann <arnd@arndb.de> | 2014-09-08 11:20:56 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2014-09-16 06:30:11 -0400 |
commit | 116ae5e2b09f7022281c253a6037a74d0446bfaf (patch) | |
tree | f20b61f63411280007ae7ec593a535cbbbb29293 /fs/cifs | |
parent | a5c3e1c725af9e84deceb3c33939ca4ffe3fefc8 (diff) |
cifs: remove dead code
cifs provides two dummy functions 'sess_auth_lanman' and
'sess_auth_kerberos' for the case in which the respective
features are not defined. However, the caller is also under
an #ifdef, so we just get warnings about unused code:
fs/cifs/sess.c:1109:1: warning: 'sess_auth_kerberos' defined but not used [-Wunused-function]
sess_auth_kerberos(struct sess_data *sess_data)
Removing the dead functions gets rid of the warnings without
any downsides that I can see.
(Yalin Wang reported the identical problem and fix so added him)
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Yalin Wang <yalin.wang@sonymobile.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/sess.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index 3a5e83317683..57db63ff88da 100644 --- a/fs/cifs/sess.c +++ b/fs/cifs/sess.c | |||
@@ -745,14 +745,6 @@ out: | |||
745 | sess_free_buffer(sess_data); | 745 | sess_free_buffer(sess_data); |
746 | } | 746 | } |
747 | 747 | ||
748 | #else | ||
749 | |||
750 | static void | ||
751 | sess_auth_lanman(struct sess_data *sess_data) | ||
752 | { | ||
753 | sess_data->result = -EOPNOTSUPP; | ||
754 | sess_data->func = NULL; | ||
755 | } | ||
756 | #endif | 748 | #endif |
757 | 749 | ||
758 | static void | 750 | static void |
@@ -1103,15 +1095,6 @@ out: | |||
1103 | ses->auth_key.response = NULL; | 1095 | ses->auth_key.response = NULL; |
1104 | } | 1096 | } |
1105 | 1097 | ||
1106 | #else | ||
1107 | |||
1108 | static void | ||
1109 | sess_auth_kerberos(struct sess_data *sess_data) | ||
1110 | { | ||
1111 | cifs_dbg(VFS, "Kerberos negotiated but upcall support disabled!\n"); | ||
1112 | sess_data->result = -ENOSYS; | ||
1113 | sess_data->func = NULL; | ||
1114 | } | ||
1115 | #endif /* ! CONFIG_CIFS_UPCALL */ | 1098 | #endif /* ! CONFIG_CIFS_UPCALL */ |
1116 | 1099 | ||
1117 | /* | 1100 | /* |