]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
fs: cifs: mute -Wunused-const-variable message
authorAustin Kim <austindh.kim@gmail.com>
Tue, 1 Oct 2019 07:34:13 +0000 (16:34 +0900)
committerSteve French <stfrench@microsoft.com>
Mon, 7 Oct 2019 03:04:35 +0000 (22:04 -0500)
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>
fs/cifs/netmisc.c

index 49c17ee182544d6f986334379d76976b6f3ef3b3..9b41436fb8dbb3d98337a10cd4b3bfc8d7135647 100644 (file)
@@ -117,10 +117,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.
  *