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

mmc: rtsx_usb_sdmmc: simplify the return expression of sd_change_phase()

Simplify the return expression.

Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Link: https://lore.kernel.org/r/20200921131042.92340-1-miaoqinglang@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Qinglang Miao and committed by
Ulf Hansson
8dae6a24 3439c588

+1 -6
+1 -6
drivers/mmc/host/rtsx_usb_sdmmc.c
··· 579 579 static int sd_change_phase(struct rtsx_usb_sdmmc *host, u8 sample_point, int tx) 580 580 { 581 581 struct rtsx_ucr *ucr = host->ucr; 582 - int err; 583 582 584 583 dev_dbg(sdmmc_dev(host), "%s: %s sample_point = %d\n", 585 584 __func__, tx ? "TX" : "RX", sample_point); ··· 600 601 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CLK_DIV, CLK_CHANGE, 0); 601 602 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CFG1, SD_ASYNC_FIFO_RST, 0); 602 603 603 - err = rtsx_usb_send_cmd(ucr, MODE_C, 100); 604 - if (err) 605 - return err; 606 - 607 - return 0; 604 + return rtsx_usb_send_cmd(ucr, MODE_C, 100); 608 605 } 609 606 610 607 static inline u32 get_phase_point(u32 phase_map, unsigned int idx)