Skip to content

Commit 3bf6ff3

Browse files
hkallweitdavem330
authored andcommitted
r8169: remove "out of memory" error message from rtl_request_firmware
When preparing an unrelated change, checkpatch complained about this redundant out-of-memory message. Therefore remove it. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d56f58c commit 3bf6ff3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎drivers/net/ethernet/realtek/r8169_main.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2507,10 +2507,8 @@ static void rtl_request_firmware(struct rtl8169_private *tp)
25072507
return;
25082508

25092509
rtl_fw = kzalloc(sizeof(*rtl_fw), GFP_KERNEL);
2510-
if (!rtl_fw) {
2511-
netif_warn(tp, ifup, tp->dev, "Unable to load firmware, out of memory\n");
2510+
if (!rtl_fw)
25122511
return;
2513-
}
25142512

25152513
rtl_fw->phy_write = rtl_writephy;
25162514
rtl_fw->phy_read = rtl_readphy;

0 commit comments

Comments
 (0)