Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8434048 authored by Jingoo Han's avatar Jingoo Han Committed by Mark Brown
Browse files

spi: orion: Fix checkpatch issue



Fix the following checkpatch warnings.

  WARNING: else is not generally useful after a break or return
  WARNING: Missing a blank line after declarations

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent fadcace7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ static inline int orion_spi_wait_till_ready(struct orion_spi *orion_spi)
	for (i = 0; i < ORION_SPI_WAIT_RDY_MAX_LOOP; i++) {
		if (readl(spi_reg(orion_spi, ORION_SPI_INT_CAUSE_REG)))
			return 1;
		else

		udelay(1);
	}

@@ -360,6 +360,7 @@ static int orion_spi_probe(struct platform_device *pdev)
		master->bus_num = pdev->id;
	if (pdev->dev.of_node) {
		u32 cell_index;

		if (!of_property_read_u32(pdev->dev.of_node, "cell-index",
					  &cell_index))
			master->bus_num = cell_index;