realtek: Add missing case in switch statement
authorRafał Mikrut <mikrutrafal@protonmail.com>
Tue, 8 Dec 2020 21:01:14 +0000 (22:01 +0100)
committerPetr Štetiar <ynezz@true.cz>
Fri, 11 Dec 2020 12:48:24 +0000 (13:48 +0100)
commit561bfc96f9bb3303791f6620a958d02167abed0f
tree58ade9127fe99ba429f4ccb16b83278947479214
parent848d668427c544d20f8aa3041fa11b4d4adc9bc8
realtek: Add missing case in switch statement

Cppcheck shows here duplicated break.

Code `state->speed = SPEED_1000;` will be never executed because above
it there is break statement.

Almost identical statement is placed in another realtek driver
https://github.com/openwrt/openwrt/blob/18a53d43d646290053eff4736ec852efcf6bf510/target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/dsa.c#L286-L294

Signed-off-by: Rafał Mikrut <mikrutrafal@protonmail.com>
target/linux/realtek/files-5.4/drivers/net/ethernet/rtl838x_eth.c