diff mbox series

mmc: core: Fix indentation

Message ID 20200221104341.583028-1-Jerome.Pouiller@silabs.com (mailing list archive)
State New, archived
Headers show
Series mmc: core: Fix indentation | expand

Commit Message

Jérôme Pouiller Feb. 21, 2020, 10:43 a.m. UTC
From: Jérôme Pouiller <jerome.pouiller@silabs.com>

sdio_single_irq_set() was indented with a mix of tabs and spaces.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
---
 drivers/mmc/core/sdio_irq.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Comments

Joe Perches Feb. 21, 2020, 2:36 p.m. UTC | #1
On Fri, 2020-02-21 at 11:43 +0100, Jerome Pouiller wrote:
> sdio_single_irq_set() was indented with a mix of tabs and spaces.
[]
> diff --git a/drivers/mmc/core/sdio_irq.c b/drivers/mmc/core/sdio_irq.c
[]
> @@ -278,12 +278,12 @@ static void sdio_single_irq_set(struct mmc_card *card)
>  	if ((card->host->caps & MMC_CAP_SDIO_IRQ) &&
>  	    card->host->sdio_irqs == 1)
>  		for (i = 0; i < card->sdio_funcs; i++) {
> -		       func = card->sdio_func[i];
> -		       if (func && func->irq_handler) {
> -			       card->sdio_single_irq = func;
> -			       break;
> -		       }
> -	       }
> +			func = card->sdio_func[i];
> +			if (func && func->irq_handler) {
> +				card->sdio_single_irq = func;
> +				break;
> +			}
> +		}
>  }

Perhaps it'd be better to add braces around the for loop too.
---
 drivers/mmc/core/sdio_irq.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/drivers/mmc/core/sdio_irq.c b/drivers/mmc/core/sdio_irq.c
index 7ca7b9..3086ed 100644
--- a/drivers/mmc/core/sdio_irq.c
+++ b/drivers/mmc/core/sdio_irq.c
@@ -260,14 +260,15 @@ static void sdio_single_irq_set(struct mmc_card *card)
 
 	card->sdio_single_irq = NULL;
 	if ((card->host->caps & MMC_CAP_SDIO_IRQ) &&
-	    card->host->sdio_irqs == 1)
+	    card->host->sdio_irqs == 1) {
 		for (i = 0; i < card->sdio_funcs; i++) {
-		       func = card->sdio_func[i];
-		       if (func && func->irq_handler) {
-			       card->sdio_single_irq = func;
-			       break;
-		       }
-	       }
+			func = card->sdio_func[i];
+			if (func && func->irq_handler) {
+				card->sdio_single_irq = func;
+				break;
+			}
+		}
+	}
 }
 
 /**
diff mbox series

Patch

diff --git a/drivers/mmc/core/sdio_irq.c b/drivers/mmc/core/sdio_irq.c
index 900871073bd7..fae25fc65b95 100644
--- a/drivers/mmc/core/sdio_irq.c
+++ b/drivers/mmc/core/sdio_irq.c
@@ -278,12 +278,12 @@  static void sdio_single_irq_set(struct mmc_card *card)
 	if ((card->host->caps & MMC_CAP_SDIO_IRQ) &&
 	    card->host->sdio_irqs == 1)
 		for (i = 0; i < card->sdio_funcs; i++) {
-		       func = card->sdio_func[i];
-		       if (func && func->irq_handler) {
-			       card->sdio_single_irq = func;
-			       break;
-		       }
-	       }
+			func = card->sdio_func[i];
+			if (func && func->irq_handler) {
+				card->sdio_single_irq = func;
+				break;
+			}
+		}
 }
 
 /**