Commit 1528192f authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller

r8169: remove unneeded check in rtl8169_rx_fill

rtl8169_rx_fill() is called only once and directly before the call
array tp->Rx_databuff[] is filled with zero's. Therefore we don't
need this check.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b1127e64
...@@ -6784,9 +6784,6 @@ static int rtl8169_rx_fill(struct rtl8169_private *tp) ...@@ -6784,9 +6784,6 @@ static int rtl8169_rx_fill(struct rtl8169_private *tp)
for (i = 0; i < NUM_RX_DESC; i++) { for (i = 0; i < NUM_RX_DESC; i++) {
void *data; void *data;
if (tp->Rx_databuff[i])
continue;
data = rtl8169_alloc_rx_data(tp, tp->RxDescArray + i); data = rtl8169_alloc_rx_data(tp, tp->RxDescArray + i);
if (!data) { if (!data) {
rtl8169_make_unusable_by_asic(tp->RxDescArray + i); rtl8169_make_unusable_by_asic(tp->RxDescArray + i);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment