Commit f7b94ae6 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman
Browse files

staging: wilc1000: fix too many leading tabs warning in sdio_clear_int_ext()



Refactor sdio_clear_int_ext() function to remove "Too many leading tabs"
warning reported by checkpatch.pl script.

Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4c1e5ec5
Loading
Loading
Loading
Loading
+65 −69
Original line number Diff line number Diff line
@@ -871,6 +871,7 @@ static int sdio_clear_int_ext(struct wilc *wilc, u32 val)
{
	struct sdio_func *func = dev_to_sdio_func(wilc->dev);
	int ret;
	int vmm_ctl;

	if (g_sdio.has_thrpt_enh3) {
		u32 reg;
@@ -909,7 +910,8 @@ static int sdio_clear_int_ext(struct wilc *wilc, u32 val)
				goto _fail_;
			}
		}
	} else {
		return 1;
	}
	if (g_sdio.irq_gpio) {
		/* see below. has_thrpt_enh2 uses register 0xf8 to clear interrupts. */
		/* Cannot clear multiple interrupts. Must clear each interrupt individually */
@@ -954,9 +956,6 @@ static int sdio_clear_int_ext(struct wilc *wilc, u32 val)
		}
	}

		{
			u32 vmm_ctl;

	vmm_ctl = 0;
	/* select VMM table 0 */
	if ((val & SEL_VMM_TBL0) == SEL_VMM_TBL0)
@@ -984,9 +983,6 @@ static int sdio_clear_int_ext(struct wilc *wilc, u32 val)
			goto _fail_;
		}
	}
		}
	}

	return 1;
_fail_:
	return 0;