Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1499265

[PATCH 08/45] staging: rts5208: sd.c: Fix logical continuations

From Wayne Porter <wporter82@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 08/45] staging: rts5208: sd.c: Fix logical continuations
Date 2016-10-12 00:20 +0200
Message-ID <srdyW-415-13@gated-at.bofh.it> (permalink)
References <srdfz-3AM-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Checkpatch detected && at the beginning of new lines

Signed-off-by: Wayne Porter <wporter82@gmail.com>
---
 drivers/staging/rts5208/sd.c | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/drivers/staging/rts5208/sd.c b/drivers/staging/rts5208/sd.c
index e3a6dd5..901e655 100644
--- a/drivers/staging/rts5208/sd.c
+++ b/drivers/staging/rts5208/sd.c
@@ -1404,22 +1404,22 @@ static int sd_switch_function(struct rtsx_chip *chip, u8 bus_width)
 	for (i = 0; i < 4; i++) {
 		switch ((u8)(chip->sd_speed_prior >> (i*8))) {
 		case SDR104_SUPPORT:
-			if ((sd_card->func_group1_mask & SDR104_SUPPORT_MASK)
-					&& chip->sdr104_en) {
+			if ((sd_card->func_group1_mask & SDR104_SUPPORT_MASK) &&
+			    chip->sdr104_en) {
 				func_to_switch = SDR104_SUPPORT;
 			}
 			break;
 
 		case DDR50_SUPPORT:
-			if ((sd_card->func_group1_mask & DDR50_SUPPORT_MASK)
-					&& chip->ddr50_en) {
+			if ((sd_card->func_group1_mask & DDR50_SUPPORT_MASK) &&
+			    chip->ddr50_en) {
 				func_to_switch = DDR50_SUPPORT;
 			}
 			break;
 
 		case SDR50_SUPPORT:
-			if ((sd_card->func_group1_mask & SDR50_SUPPORT_MASK)
-					&& chip->sdr50_en) {
+			if ((sd_card->func_group1_mask & SDR50_SUPPORT_MASK) &&
+			    chip->sdr50_en) {
 				func_to_switch = SDR50_SUPPORT;
 			}
 			break;
@@ -3746,11 +3746,11 @@ int sd_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, u32 start_sector,
 	    ((sd_card->pre_dir != srb->sc_data_direction) ||
 	    ((sd_card->pre_sec_addr + sd_card->pre_sec_cnt) !=
 	    start_sector))) {
-		if ((sd_card->pre_sec_cnt < 0x80)
-				&& (sd_card->pre_dir == DMA_FROM_DEVICE)
-				&& !CHK_SD30_SPEED(sd_card)
-				&& !CHK_SD_HS(sd_card)
-				&& !CHK_MMC_HS(sd_card)) {
+		if ((sd_card->pre_sec_cnt < 0x80) &&
+		    (sd_card->pre_dir == DMA_FROM_DEVICE) &&
+		    !CHK_SD30_SPEED(sd_card) &&
+		    !CHK_SD_HS(sd_card) &&
+		    !CHK_MMC_HS(sd_card)) {
 			sd_send_cmd_get_rsp(chip, SEND_STATUS, sd_card->sd_addr,
 					    SD_RSP_TYPE_R1, NULL, 0);
 		}
@@ -3773,10 +3773,10 @@ int sd_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, u32 start_sector,
 			goto RW_FAIL;
 		}
 
-		if ((sd_card->pre_sec_cnt < 0x80)
-				&& !CHK_SD30_SPEED(sd_card)
-				&& !CHK_SD_HS(sd_card)
-				&& !CHK_MMC_HS(sd_card)) {
+		if ((sd_card->pre_sec_cnt < 0x80) &&
+		    !CHK_SD30_SPEED(sd_card) &&
+		    !CHK_SD_HS(sd_card) &&
+		    !CHK_MMC_HS(sd_card)) {
 			sd_send_cmd_get_rsp(chip, SEND_STATUS, sd_card->sd_addr,
 					    SD_RSP_TYPE_R1, NULL, 0);
 		}
-- 
2.1.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 00/45] staging: rts5208: Checkpatch.pl cleanup Wayne Porter <wporter82@gmail.com> - 2016-10-12 00:20 +0200
  [PATCH 11/45] staging: rts5208: Unnecessary parentheses cleanup Wayne Porter <wporter82@gmail.com> - 2016-10-12 00:20 +0200
  [PATCH 08/45] staging: rts5208: sd.c: Fix logical continuations Wayne Porter <wporter82@gmail.com> - 2016-10-12 00:20 +0200
  [PATCH 01/45] staging: rts5208: spi.c: Remove unnecessary parenthesis Wayne Porter <wporter82@gmail.com> - 2016-10-12 00:20 +0200
  [PATCH 12/45] staging: rts5208: Alignment fix Wayne Porter <wporter82@gmail.com> - 2016-10-12 00:20 +0200
  [PATCH 10/45] staging: rts5208: Alignment fixes Wayne Porter <wporter82@gmail.com> - 2016-10-12 00:20 +0200
  [PATCH 13/45] staging: rts5208: Fix typo in function name Wayne Porter <wporter82@gmail.com> - 2016-10-12 00:20 +0200
  [PATCH 02/45] staging: rts5208: spi.c: Alignment fixes Wayne Porter <wporter82@gmail.com> - 2016-10-12 00:20 +0200
  [PATCH 15/45] staging: rts5208: Remove parentheses Wayne Porter <wporter82@gmail.com> - 2016-10-12 00:20 +0200
  [PATCH 04/45] staging: rts5208: sd.c: Remove unnecessary parentheses Wayne Porter <wporter82@gmail.com> - 2016-10-12 00:20 +0200

csiph-web