Commit 9964f8c8 authored by zhong jiang's avatar zhong jiang Committed by Greg Kroah-Hartman

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: default avatarzhong jiang <zhongjiang@huawei.com>
Link: https://lore.kernel.org/r/1568307841-44065-1-git-send-email-zhongjiang@huawei.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d52accce
...@@ -191,7 +191,6 @@ static int sd_set_sample_push_timing_sd30(struct rtsx_pcr *pcr) ...@@ -191,7 +191,6 @@ static int sd_set_sample_push_timing_sd30(struct rtsx_pcr *pcr)
static int rts5260_card_power_on(struct rtsx_pcr *pcr, int card) static int rts5260_card_power_on(struct rtsx_pcr *pcr, int card)
{ {
int err = 0;
struct rtsx_cr_option *option = &pcr->option; struct rtsx_cr_option *option = &pcr->option;
if (option->ocp_en) if (option->ocp_en)
...@@ -231,7 +230,7 @@ static int rts5260_card_power_on(struct rtsx_pcr *pcr, int card) ...@@ -231,7 +230,7 @@ static int rts5260_card_power_on(struct rtsx_pcr *pcr, int card)
rtsx_pci_write_register(pcr, REG_PRE_RW_MODE, EN_INFINITE_MODE, 0); rtsx_pci_write_register(pcr, REG_PRE_RW_MODE, EN_INFINITE_MODE, 0);
return err; return 0;
} }
static int rts5260_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) static int rts5260_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment