mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-03 17:51:23 +00:00
mmc: sdhci-pci: fix simple_return.cocci warnings
drivers/mmc/host/sdhci-pci-core.c:447:1-4: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci CC: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
f0cbd7806d
commit
7582041ff3
@ -444,11 +444,7 @@ static int jmicron_pmos(struct sdhci_pci_chip *chip, int on)
|
|||||||
else
|
else
|
||||||
scratch &= ~0x47;
|
scratch &= ~0x47;
|
||||||
|
|
||||||
ret = pci_write_config_byte(chip->pdev, 0xAE, scratch);
|
return pci_write_config_byte(chip->pdev, 0xAE, scratch);
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int jmicron_probe(struct sdhci_pci_chip *chip)
|
static int jmicron_probe(struct sdhci_pci_chip *chip)
|
||||||
|
Loading…
Reference in New Issue
Block a user