Commit c9e3c03a authored by Mark Einon's avatar Mark Einon Committed by Greg Kroah-Hartman

staging: et131x: Use braces on all arms of if/else in et131x_handle_recv_pkts

The 'if' blocks have braces, so the 'else' blocks should too.
Signed-off-by: default avatarMark Einon <mark.einon@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3f4d2029
...@@ -2494,9 +2494,10 @@ static int et131x_handle_recv_pkts(struct et131x_adapter *adapter, int budget) ...@@ -2494,9 +2494,10 @@ static int et131x_handle_recv_pkts(struct et131x_adapter *adapter, int budget)
rx_ring->unfinished_receives = true; rx_ring->unfinished_receives = true;
writel(PARM_TX_TIME_INT_DEF * NANO_IN_A_MICRO, writel(PARM_TX_TIME_INT_DEF * NANO_IN_A_MICRO,
&adapter->regs->global.watchdog_timer); &adapter->regs->global.watchdog_timer);
} else } else {
/* Watchdog timer will disable itself if appropriate. */ /* Watchdog timer will disable itself if appropriate. */
rx_ring->unfinished_receives = false; rx_ring->unfinished_receives = false;
}
return count; return count;
} }
...@@ -2679,9 +2680,10 @@ static int nic_send_packet(struct et131x_adapter *adapter, struct tcb *tcb) ...@@ -2679,9 +2680,10 @@ static int nic_send_packet(struct et131x_adapter *adapter, struct tcb *tcb)
} else { /* Last element */ } else { /* Last element */
desc[frag - 1].flags = TXDESC_FLAG_LASTPKT; desc[frag - 1].flags = TXDESC_FLAG_LASTPKT;
} }
} else } else {
desc[frag - 1].flags = desc[frag - 1].flags =
TXDESC_FLAG_INTPROC | TXDESC_FLAG_LASTPKT; TXDESC_FLAG_INTPROC | TXDESC_FLAG_LASTPKT;
}
desc[0].flags |= TXDESC_FLAG_FIRSTPKT; desc[0].flags |= TXDESC_FLAG_FIRSTPKT;
......
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