[PATCH] net: dsa: rtl8366rb: fix semicolon.cocci warnings

kernel test robot lkp at intel.com
Mon Sep 13 20:03:08 PDT 2021


From: kernel test robot <lkp at intel.com>

drivers/net/dsa/rtl8366rb.c:1273:2-3: Unneeded semicolon


 Remove unneeded semicolon.

Generated by: scripts/coccinelle/misc/semicolon.cocci

Fixes: 2c53b3b9882f ("net: dsa: rtl8366rb: Support setting STP state")
Reported-by: kernel test robot <lkp at intel.com>
Signed-off-by: kernel test robot <lkp at intel.com>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git gemini-dir-685-rtl8366rb
head:   201d60fce4512211f149b3c95342188a62c9b24c
commit: 2c53b3b9882faf9f46872bde337d95aadd88f0bb [13/15] net: dsa: rtl8366rb: Support setting STP state
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago

 rtl8366rb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/dsa/rtl8366rb.c
+++ b/drivers/net/dsa/rtl8366rb.c
@@ -1270,7 +1270,7 @@ rtl8366rb_port_stp_state_set(struct dsa_
 	default:
 		dev_err(smi->dev, "unknown bridge state requested\n");
 		return;
-	};
+	}
 
 	mask = (RTL8368S_SPT_STATE_MSK << (port * 2));
 	val <<= (port * 2);



More information about the linux-arm-kernel mailing list