Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

r8169: remove not needed check in rtl_fw_write_firmware

This check can never be true for a firmware file with a correct format.
Existing checks in rtl_fw_data_ok() are sufficient, no problems with
invalid firmware files are known.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Heiner Kallweit and committed by
David S. Miller
3a767b48 30c90200

-3
-3
drivers/net/ethernet/realtek/r8169_firmware.c
··· 151 151 u32 regno = (action & 0x0fff0000) >> 16; 152 152 enum rtl_fw_opcode opcode = action >> 28; 153 153 154 - if (!action) 155 - break; 156 - 157 154 switch (opcode) { 158 155 case PHY_READ: 159 156 predata = fw_read(tp, regno);