summaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorAustin Kim <austindh.kim@gmail.com>2019-10-01 16:34:13 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-06 13:05:51 +0100
commit497fd98a50b2c1595afecaca841c97a0b0603449 (patch)
treefabccd4bf6f1ca0e7e9722c76c6aca2198158022 /fs/cifs
parent579249a08348442c09ddffdf459ac2290e077b4e (diff)
downloadlinux-stable-497fd98a50b2c1595afecaca841c97a0b0603449.tar.gz
linux-stable-497fd98a50b2c1595afecaca841c97a0b0603449.tar.bz2
linux-stable-497fd98a50b2c1595afecaca841c97a0b0603449.zip
fs: cifs: mute -Wunused-const-variable message
[ Upstream commit dd19c106a36690b47bb1acc68372f2b472b495b8 ] After 'Initial git repository build' commit, 'mapping_table_ERRHRD' variable has not been used. So 'mapping_table_ERRHRD' const variable could be removed to mute below warning message: fs/cifs/netmisc.c:120:40: warning: unused variable 'mapping_table_ERRHRD' [-Wunused-const-variable] static const struct smb_to_posix_error mapping_table_ERRHRD[] = { ^ Signed-off-by: Austin Kim <austindh.kim@gmail.com> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/netmisc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c
index fdd908e4a26b..66c10121a6ea 100644
--- a/fs/cifs/netmisc.c
+++ b/fs/cifs/netmisc.c
@@ -130,10 +130,6 @@ static const struct smb_to_posix_error mapping_table_ERRSRV[] = {
{0, 0}
};
-static const struct smb_to_posix_error mapping_table_ERRHRD[] = {
- {0, 0}
-};
-
/*
* Convert a string containing text IPv4 or IPv6 address to binary form.
*