Skip to contentSkip to conversation

cifs: drop unused table

RFC In review Stephen Hemminger 1 participant 2 messages Dec 20, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC 1/1 cifs: drop unused table

From: Stephen Hemminger <[email protected]>

This mapping table is not used anywhere in current code and causes warning if kernel is built with W=1

---
 fs/cifs/netmisc.c | 4 ----
 1 file changed, 4 deletions(-)
fs/cifs/netmisc.c +0 -4
index fdd908e4a26b..66c10121a6ea 100644
@@ -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.
  *
Signature · 1 line
2.19.2
#1 lore raw
Quoted 15 lines · On Thu, 20 Dec 2018 15:39:39 -0800 Stephen Hemminger…

From: Stephen Hemminger <[email protected]>

This mapping table is not used anywhere in current code and causes warning if kernel is built with W=1

---
 fs/cifs/netmisc.c | 4 ----
 1 file changed, 4 deletions(-)
fs/cifs/netmisc.c +0 -0
index fdd908e4a26b..66c10121a6ea 100644

fs/cifs/netmisc.c static const struct smb_to_posix_error mapping_table_ERRSRV[] = { · line 135

Quoted 10 lines
fs/cifs/netmisc.c +0 -4
@@ -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.
  *

Sorry my script grabbed the wrong mailing list, ignore this