staging: rts5208: Add spaces around operators
authorRehas Sachdeva <aquannie@gmail.com>
Tue, 20 Sep 2016 11:15:04 +0000 (16:45 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 12:03:00 +0000 (14:03 +0200)
Adds spaces on either side of arithmetic and relational operators like
'-', '<' and '*'. Issue found by checkpatch.

Signed-off-by: Rehas Sachdeva <aquannie@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/ms.c

index 2f528addc67f9bfee611ef87e8450b0563e38d7a..9fc64da07fb2e5304363166d9ebe07cabefad0e6 100644 (file)
@@ -2711,7 +2711,7 @@ static int ms_build_l2p_tbl(struct rtsx_chip *chip, int seg_no)
                us2 = extra[0] & 0x10;
 
                (void)ms_arbitrate_l2p(chip, phy_blk,
-                               log_blk-ms_start_idx[seg_no], us1, us2);
+                               log_blk - ms_start_idx[seg_no], us1, us2);
                continue;
        }
 
@@ -3986,7 +3986,7 @@ static int ms_rw_multi_sector(struct scsi_cmnd *srb, struct rtsx_chip *chip,
 
                for (seg_no = 0; seg_no < ARRAY_SIZE(ms_start_idx) - 1;
                                seg_no++) {
-                       if (log_blk < ms_start_idx[seg_no+1])
+                       if (log_blk < ms_start_idx[seg_no + 1])
                                break;
                }
 
@@ -4648,8 +4648,8 @@ int mg_set_ICV(struct scsi_cmnd *srb, struct rtsx_chip *chip)
 
                rtsx_send_cmd_no_wait(chip);
 
-               retval = rtsx_transfer_data(chip, MS_CARD, buf + 4 + i*512,
-                                       512, 0, DMA_TO_DEVICE, 3000);
+               retval = rtsx_transfer_data(chip, MS_CARD, buf + 4 + i * 512,
+                                           512, 0, DMA_TO_DEVICE, 3000);
                if ((retval < 0) || check_ms_err(chip)) {
                        rtsx_clear_ms_error(chip);
                        if (ms_card->mg_auth == 0) {