diff mbox series

[net-next,15/16] net: farsync: remove redundant return

Message ID 1623139962-34847-16-git-send-email-huangguangbin2@huawei.com
State New
Headers show
Series net: farsync: clean up some code style issues | expand

Commit Message

huangguangbin (A) June 8, 2021, 8:12 a.m. UTC
From: Peng Li <lipeng321@huawei.com>

Void function return statements are not generally useful.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
---
 drivers/net/wan/farsync.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c
index 3aea3d3..10208f0 100644
--- a/drivers/net/wan/farsync.c
+++ b/drivers/net/wan/farsync.c
@@ -1156,7 +1156,6 @@  fst_recover_rx_error(struct fst_card_info *card, struct fst_port_info *port,
 		rxp = (rxp + 1) % NUM_RX_BUFFER;
 	}
 	port->rxpos = rxp;
-	return;
 }
 
 /*      Rx complete interrupt