Commit 0e8af100 authored by Tamara Diaconita's avatar Tamara Diaconita Committed by Greg Kroah-Hartman

staging: wilc1000: Remove unnecessary brackets

Remove unnecessary brackets and correspondingly unindent code.
Signed-off-by: default avatarTamara Diaconita <diaconita.tamara@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e08b6670
...@@ -946,7 +946,6 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status) ...@@ -946,7 +946,6 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status)
} }
tmp = (byte_cnt >> 2) & IRQ_DMA_WD_CNT_MASK; tmp = (byte_cnt >> 2) & IRQ_DMA_WD_CNT_MASK;
{
j = 0; j = 0;
do { do {
happened = 0; happened = 0;
...@@ -960,17 +959,15 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status) ...@@ -960,17 +959,15 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status)
tmp |= (((irq_flags >> 0) & 0x7) << (IRG_FLAGS_OFFSET + 5)); tmp |= (((irq_flags >> 0) & 0x7) << (IRG_FLAGS_OFFSET + 5));
} }
{
unknown_mask = ~((1ul << g_spi.nint) - 1); unknown_mask = ~((1ul << g_spi.nint) - 1);
if ((tmp >> IRG_FLAGS_OFFSET) & unknown_mask) { if ((tmp >> IRG_FLAGS_OFFSET) & unknown_mask) {
dev_err(&spi->dev, "Unexpected interrupt (2): j=%d, tmp=%x, mask=%x\n", j, tmp, unknown_mask); dev_err(&spi->dev, "Unexpected interrupt (2): j=%d, tmp=%x, mask=%x\n", j, tmp, unknown_mask);
happened = 1; happened = 1;
} }
}
j++; j++;
} while (happened); } while (happened);
}
*int_status = tmp; *int_status = tmp;
} }
......
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