Skip to content

Commit aca1968

Browse files
Yang Yingliangbroonie
authored andcommitted
spi: mxic: add missing braces
Fix the following waring: drivers/spi/spi-mxic.c: In function ‘mxic_spi_mem_exec_op’: drivers/spi/spi-mxic.c:401:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (op->data.dir == SPI_MEM_DATA_IN) ^~ drivers/spi/spi-mxic.c:403:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ if (op->data.dtr) ^~ Signed-off-by: Yang Yingliang <[email protected]> Reviewed-by: Zhengxun Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 976c1de commit aca1968

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/spi/spi-mxic.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,11 @@ static int mxic_spi_mem_exec_op(struct spi_mem *mem,
398398
if (op->data.nbytes) {
399399
ss_ctrl |= OP_DATA_BUSW(fls(op->data.buswidth) - 1) |
400400
(op->data.dtr ? OP_DATA_DDR : 0);
401-
if (op->data.dir == SPI_MEM_DATA_IN)
401+
if (op->data.dir == SPI_MEM_DATA_IN) {
402402
ss_ctrl |= OP_READ;
403403
if (op->data.dtr)
404404
ss_ctrl |= OP_DQS_EN;
405+
}
405406
}
406407

407408
writel(ss_ctrl, mxic->regs + SS_CTRL(mem->spi->chip_select));

0 commit comments

Comments
 (0)