Skip to content

Commit 9964f8c

Browse files
xiongzhongjianggregkh
authored andcommitted
misc: rtsx: Remove unneeded variable in rts5260_card_power_on
rts5260_card_power_on do not need local variable to store different value, Hence just remove it. Signed-off-by: zhong jiang <zhongjiang@huawei.com> Link: https://lore.kernel.org/r/1568307841-44065-1-git-send-email-zhongjiang@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d52accc commit 9964f8c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/misc/cardreader/rts5260.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ static int sd_set_sample_push_timing_sd30(struct rtsx_pcr *pcr)
191191

192192
static int rts5260_card_power_on(struct rtsx_pcr *pcr, int card)
193193
{
194-
int err = 0;
195194
struct rtsx_cr_option *option = &pcr->option;
196195

197196
if (option->ocp_en)
@@ -231,7 +230,7 @@ static int rts5260_card_power_on(struct rtsx_pcr *pcr, int card)
231230

232231
rtsx_pci_write_register(pcr, REG_PRE_RW_MODE, EN_INFINITE_MODE, 0);
233232

234-
return err;
233+
return 0;
235234
}
236235

237236
static int rts5260_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage)

0 commit comments

Comments
 (0)