spi: spi-topcliff-pch: Fix checkpatch spacing error
authorJay Fang <f.fangjian@huawei.com>
Wed, 24 Mar 2021 06:16:32 +0000 (14:16 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 24 Mar 2021 19:51:03 +0000 (19:51 +0000)
Fix checkpatch error:

  ERROR: space prohibited before that '++' (ctx:WxB)
  #1204: FILE: spi-topcliff-pch.c:1204:
  + for (i = 0; i < cnt; i ++) {
                         ^

Signed-off-by: Jay Fang <f.fangjian@huawei.com>
Link: https://lore.kernel.org/r/1616566602-13894-2-git-send-email-f.fangjian@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-topcliff-pch.c

index b459e369079f8128d83b152240ea37210f907db4..b8870784fc6eff115c4040169f4662b47303e9bf 100644 (file)
@@ -1201,7 +1201,8 @@ static void pch_spi_process_messages(struct work_struct *pwork)
                if (data->use_dma) {
                        int i;
                        char *save_rx_buf = data->cur_trans->rx_buf;
-                       for (i = 0; i < cnt; i ++) {
+
+                       for (i = 0; i < cnt; i++) {
                                pch_spi_handle_dma(data, &bpw);
                                if (!pch_spi_start_transfer(data)) {
                                        data->transfer_complete = true;