linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] spi: atmel: fix indenting in atmel_spi_gpio_cs()
@ 2016-11-14 14:26 Dan Carpenter
  2016-11-14 14:49 ` Nicolas Ferre
  2016-11-15 18:53 ` Applied "spi: atmel: fix indenting in atmel_spi_gpio_cs()" to the spi tree Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2016-11-14 14:26 UTC (permalink / raw)
  To: Nicolas Ferre; +Cc: Mark Brown, linux-spi, kernel-janitors

These lines were indented one extra tab.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c
index d3affa6..b293149 100644
--- a/drivers/spi/spi-atmel.c
+++ b/drivers/spi/spi-atmel.c
@@ -1510,15 +1510,15 @@ static int atmel_spi_gpio_cs(struct platform_device *pdev)
 		int cs_gpio = of_get_named_gpio(pdev->dev.of_node,
 						"cs-gpios", i);
 
-			if (cs_gpio == -EPROBE_DEFER)
-				return cs_gpio;
-
-			if (gpio_is_valid(cs_gpio)) {
-				ret = devm_gpio_request(&pdev->dev, cs_gpio,
-							dev_name(&pdev->dev));
-				if (ret)
-					return ret;
-			}
+		if (cs_gpio == -EPROBE_DEFER)
+			return cs_gpio;
+
+		if (gpio_is_valid(cs_gpio)) {
+			ret = devm_gpio_request(&pdev->dev, cs_gpio,
+						dev_name(&pdev->dev));
+			if (ret)
+				return ret;
+		}
 	}
 
 	return 0;

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-15 18:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-14 14:26 [patch] spi: atmel: fix indenting in atmel_spi_gpio_cs() Dan Carpenter
2016-11-14 14:49 ` Nicolas Ferre
2016-11-15 18:53 ` Applied "spi: atmel: fix indenting in atmel_spi_gpio_cs()" to the spi tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).