Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

zhong jiang and committed by
Greg Kroah-Hartman
9964f8c8 d52accce

+1 -2
+1 -2
drivers/misc/cardreader/rts5260.c
··· 191 191 192 192 static int rts5260_card_power_on(struct rtsx_pcr *pcr, int card) 193 193 { 194 - int err = 0; 195 194 struct rtsx_cr_option *option = &pcr->option; 196 195 197 196 if (option->ocp_en) ··· 230 231 231 232 rtsx_pci_write_register(pcr, REG_PRE_RW_MODE, EN_INFINITE_MODE, 0); 232 233 233 - return err; 234 + return 0; 234 235 } 235 236 236 237 static int rts5260_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage)