staging: dgnc: Fix braces {} are not necessary for single statement blocks
authorKonrad Zapalowicz <bergo.torino@gmail.com>
Wed, 6 Aug 2014 19:01:25 +0000 (21:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:14 +0000 (12:23 -0700)
This commit fixes the following checkpath warning in dgnc_neo.c file:
'braces {} are not necessary for single statement blocks'

Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_neo.c

index e6aeda3dae936722fe5661540b5d144b223aa02d..b4198e0d5f0c2631937c00c504ce0ef520cbf921 100644 (file)
@@ -1804,9 +1804,8 @@ static uint neo_get_uart_bytes_left(struct channel_t *ch)
 
        /* Determine whether the Transmitter is empty or not */
        if (!(lsr & UART_LSR_TEMT)) {
-               if (ch->ch_flags & CH_TX_FIFO_EMPTY) {
+               if (ch->ch_flags & CH_TX_FIFO_EMPTY)
                        tasklet_schedule(&ch->ch_bd->helper_tasklet);
-               }
                left = 1;
        } else {
                ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);