diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2023-05-07 10:20:30 +0200 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-05-12 03:15:40 +0200 |
commit | c7bca5883d17ad49c66e7acd671c2c2a3d0ea6fc (patch) | |
tree | bf50b5d0f9476a912039a3e894e3edfb475bcaf8 | |
parent | 8aa786d9a78a7c4422043206ece21f47e01529e6 (diff) | |
download | upstream-c7bca5883d17ad49c66e7acd671c2c2a3d0ea6fc.tar.gz upstream-c7bca5883d17ad49c66e7acd671c2c2a3d0ea6fc.tar.bz2 upstream-c7bca5883d17ad49c66e7acd671c2c2a3d0ea6fc.zip |
realtek: 5.15: replace fallthrough comment for rtl838x ethernet driver
Replace fallthrough comment with fallthrough macro for rtl838x ethernet
driver.
Fix compilarion warning:
drivers/net/ethernet/rtl838x_eth.c: In function 'rtl930x_mdio_reset':
drivers/net/ethernet/rtl838x_eth.c:1959:43: error: this statement may fall through [-Werror=implicit-fallthrough=]
1959 | private_poll_mask |= BIT(i);
drivers/net/ethernet/rtl838x_eth.c:1961:17: note: here
1961 | case PHY_INTERFACE_MODE_USXGMII:
| ^~~~
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
-rw-r--r-- | target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c b/target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c index 06de0ada2a..e9ebc7c73c 100644 --- a/target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c +++ b/target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c @@ -1958,7 +1958,7 @@ static int rtl930x_mdio_reset(struct mii_bus *bus) break; /* Serdes: Value = 0 */ case PHY_INTERFACE_MODE_HSGMII: private_poll_mask |= BIT(i); - /* fallthrough */ + fallthrough; case PHY_INTERFACE_MODE_USXGMII: v |= BIT(mac_type_bit[i]); uses_usxgmii = true; |