public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix use of uninitialized variable in rts5261_init_from_hw, when efuse_valid == 1.
@ 2022-06-17  4:47 HighW4y2H3ll
  2022-06-17  6:33 ` Greg Kroah-Hartman
  2022-06-17 18:40 ` Nathan Chancellor
  0 siblings, 2 replies; 4+ messages in thread
From: HighW4y2H3ll @ 2022-06-17  4:47 UTC (permalink / raw)
  To: Arnd Bergmann, Greg Kroah-Hartman; +Cc: HighW4y2H3ll, linux-kernel

Signed-off-by: zhenghao hu <huzh@nyu.edu>
---
 drivers/misc/cardreader/rts5261.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/cardreader/rts5261.c b/drivers/misc/cardreader/rts5261.c
index 749cc5a46d13..f22634b14dc8 100644
--- a/drivers/misc/cardreader/rts5261.c
+++ b/drivers/misc/cardreader/rts5261.c
@@ -403,7 +403,7 @@ static void rts5261_init_from_hw(struct rtsx_pcr *pcr)
 			setting_reg1 = PCR_SETTING_REG4;
 			setting_reg2 = PCR_SETTING_REG5;
 		}
-	} else if (efuse_valid == 0) {
+	} else {
 		// default
 		setting_reg1 = PCR_SETTING_REG1;
 		setting_reg2 = PCR_SETTING_REG2;
-- 
2.35.1


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

end of thread, other threads:[~2022-06-17 19:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-17  4:47 [PATCH] Fix use of uninitialized variable in rts5261_init_from_hw, when efuse_valid == 1 HighW4y2H3ll
2022-06-17  6:33 ` Greg Kroah-Hartman
2022-06-17 18:40 ` Nathan Chancellor
2022-06-17 19:01   ` Zhenghao Hu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox