Skip to content

Commit

Permalink
misc: rtsx: Remove unneeded variable in rts5260_card_power_on
Browse files Browse the repository at this point in the history
rts5260_card_power_on do not need local variable to store different value,
Hence just remove it.

Signed-off-by: zhong jiang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
xiongzhongjiang authored and gregkh committed Oct 10, 2019
1 parent d52accc commit 9964f8c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/misc/cardreader/rts5260.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
int err = 0;
struct rtsx_cr_option *option = &pcr->option;

if (option->ocp_en)
Expand Down Expand Up @@ -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);

return err;
return 0;
}

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

0 comments on commit 9964f8c

Please sign in to comment.