Skip to content

Commit

Permalink
r8169: remove "out of memory" error message from rtl_request_firmware
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiner Kallweit authored and David S. Miller committed May 1, 2020
1 parent d56f58c commit 3bf6ff3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/ethernet/realtek/r8169_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2507,10 +2507,8 @@ static void rtl_request_firmware(struct rtl8169_private *tp)
return;

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

rtl_fw->phy_write = rtl_writephy;
rtl_fw->phy_read = rtl_readphy;
Expand Down

0 comments on commit 3bf6ff3

Please sign in to comment.