Skip to contentSkip to conversation

staging: wilc1000: Remove unnecessary brackets

PATCH Superseded Tamara Diaconita 1 participant 1 message Mar 10, 2017 Staging

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 staging: wilc1000: Remove unnecessary brackets

Improved code readability by removing unnecessary brackets and deleting tabs to indent.

---
 drivers/staging/wilc1000/wilc_spi.c | 44 +++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 24 deletions(-)
drivers/staging/wilc1000/wilc_spi.c +20 -24
index 5e28adc..b3c0594 100644
@@ -946,39 +946,35 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status)
 		}
 		tmp = (byte_cnt >> 2) & IRQ_DMA_WD_CNT_MASK;
 
-		{
-			int happended, j;
+		int happended, j;
 
-			j = 0;
-			do {
-				u32 irq_flags;
+		j = 0;
+		do {
+			u32 irq_flags;
 
-				happended = 0;
+			happended = 0;
 
-				wilc_spi_read_reg(wilc, 0x1a90, &irq_flags);
-				tmp |= ((irq_flags >> 27) << IRG_FLAGS_OFFSET);
+			wilc_spi_read_reg(wilc, 0x1a90, &irq_flags);
+			tmp |= ((irq_flags >> 27) << IRG_FLAGS_OFFSET);
 
-				if (g_spi.nint > 5) {
-					wilc_spi_read_reg(wilc, 0x1a94,
-							  &irq_flags);
-					tmp |= (((irq_flags >> 0) & 0x7) << (IRG_FLAGS_OFFSET + 5));
-				}
+			if (g_spi.nint > 5) {
+				wilc_spi_read_reg(wilc, 0x1a94,
+						  &irq_flags);
+				tmp |= (((irq_flags >> 0) & 0x7) << (IRG_FLAGS_OFFSET + 5));
+			}
 
-				{
-					u32 unkmown_mask;
+				u32 unkmown_mask;
 
-					unkmown_mask = ~((1ul << g_spi.nint) - 1);
+				unkmown_mask = ~((1ul << g_spi.nint) - 1);
 
-					if ((tmp >> IRG_FLAGS_OFFSET) & unkmown_mask) {
-						dev_err(&spi->dev, "Unexpected interrupt (2): j=%d, tmp=%x, mask=%x\n", j, tmp, unkmown_mask);
-						happended = 1;
-					}
+				if ((tmp >> IRG_FLAGS_OFFSET) & unkmown_mask) {
+					dev_err(&spi->dev, "Unexpected interrupt (2): j=%d, tmp=%x, mask=%x\n", j, tmp, unkmown_mask);
+					happended = 1;
 				}
-				j++;
-			} while (happended);
-		}
+			j++;
+		} while (happended);
 
-		*int_status = tmp;
+	*int_status = tmp;
 	}
 
 _fail_:
Signature · 1 line
2.9.3