The 'if' blocks have braces, so the 'else' blocks should too.
Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
rx_ring->unfinished_receives = true;
writel(PARM_TX_TIME_INT_DEF * NANO_IN_A_MICRO,
&adapter->regs->global.watchdog_timer);
- } else
+ } else {
/* Watchdog timer will disable itself if appropriate. */
rx_ring->unfinished_receives = false;
+ }
return count;
}
} else { /* Last element */
desc[frag - 1].flags = TXDESC_FLAG_LASTPKT;
}
- } else
+ } else {
desc[frag - 1].flags =
TXDESC_FLAG_INTPROC | TXDESC_FLAG_LASTPKT;
+ }
desc[0].flags |= TXDESC_FLAG_FIRSTPKT;