[PATCH] net: fddi: skfp: smt.c: Remove unused function

Subsystems: networking drivers, the rest

STALE4232d

2 messages, 2 authors, 2015-01-02 · open the first message on its own page

[PATCH] net: fddi: skfp: smt.c: Remove unused function

From: Rickard Strandqvist <hidden>
Date: 2015-01-01 16:58:34

Remove the function smt_ifconfig() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <redacted>
---
 drivers/net/fddi/skfp/smt.c |   12 ------------
 1 file changed, 12 deletions(-)
diff --git a/drivers/net/fddi/skfp/smt.c b/drivers/net/fddi/skfp/smt.c
index 9edada8..cd78b7c 100644
--- a/drivers/net/fddi/skfp/smt.c
+++ b/drivers/net/fddi/skfp/smt.c
@@ -1736,18 +1736,6 @@ char *addr_to_string(struct fddi_addr *addr)
 }
 #endif
 
-#ifdef	AM29K
-int smt_ifconfig(int argc, char *argv[])
-{
-	if (argc >= 2 && !strcmp(argv[0],"opt_bypass") &&
-	    !strcmp(argv[1],"yes")) {
-		smc->mib.fddiSMTBypassPresent = 1 ;
-		return 0;
-	}
-	return amdfddi_config(0, argc, argv);
-}
-#endif
-
 /*
  * return static mac index
  */
-- 
1.7.10.4

Re: [PATCH] net: fddi: skfp: smt.c: Remove unused function

From: David Miller <davem@davemloft.net>
Date: 2015-01-02 21:40:06

From: Rickard Strandqvist <redacted>
Date: Thu,  1 Jan 2015 18:01:26 +0100
Remove the function smt_ifconfig() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help