All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: rts5208: sd: Remove redundant code
@ 2015-10-13 23:00 Shivani Bhardwaj
  2015-10-13 23:14 ` [Outreachy kernel] " Greg KH
  0 siblings, 1 reply; 9+ messages in thread
From: Shivani Bhardwaj @ 2015-10-13 23:00 UTC (permalink / raw)
  To: outreachy-kernel

Change the order of statements and remove extra code.

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
 drivers/staging/rts5208/sd.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/rts5208/sd.c b/drivers/staging/rts5208/sd.c
index d6c4982..4269be9 100644
--- a/drivers/staging/rts5208/sd.c
+++ b/drivers/staging/rts5208/sd.c
@@ -2707,17 +2707,14 @@ RTY_SD_RST:
 		return STATUS_FAIL;
 	}
 
+	CLR_SD_HCXC(sd_card);
+
 	if (hi_cap_flow) {
 		if (rsp[1] & 0x40)
 			SET_SD_HCXC(sd_card);
-		else
-			CLR_SD_HCXC(sd_card);
-
-		support_1v8 = false;
-	} else {
-		CLR_SD_HCXC(sd_card);
-		support_1v8 = false;
 	}
+
+	support_1v8 = false;
 	dev_dbg(rtsx_dev(chip), "support_1v8 = %d\n", support_1v8);
 
 	if (support_1v8) {
-- 
2.1.0



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-14 13:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-13 23:00 [PATCH] Staging: rts5208: sd: Remove redundant code Shivani Bhardwaj
2015-10-13 23:14 ` [Outreachy kernel] " Greg KH
2015-10-13 23:24   ` Shivani Bhardwaj
2015-10-13 23:39     ` Greg KH
2015-10-13 23:45       ` Shivani Bhardwaj
2015-10-13 23:50         ` Shivani Bhardwaj
2015-10-14  9:24         ` Arnd Bergmann
2015-10-14 10:16           ` Shivani Bhardwaj
2015-10-14 13:44             ` Arnd Bergmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.