diff options
author | kbuild test robot <lkp@intel.com> | 2015-10-05 16:01:04 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-10-26 11:00:06 -0400 |
commit | 7582041ff3d4aaa348894858d6384c4a9981c5fc (patch) | |
tree | fb3e06cc81f47aa662533da28be1a007ba54a3a2 | |
parent | f0cbd7806d736d77714994cc41c5161c0a29cccf (diff) |
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>
-rw-r--r-- | drivers/mmc/host/sdhci-pci-core.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c index b3b0a3e4fca1..6d86dc882a83 100644 --- a/drivers/mmc/host/sdhci-pci-core.c +++ b/drivers/mmc/host/sdhci-pci-core.c | |||
@@ -444,11 +444,7 @@ static int jmicron_pmos(struct sdhci_pci_chip *chip, int on) | |||
444 | else | 444 | else |
445 | scratch &= ~0x47; | 445 | scratch &= ~0x47; |
446 | 446 | ||
447 | ret = pci_write_config_byte(chip->pdev, 0xAE, scratch); | 447 | return pci_write_config_byte(chip->pdev, 0xAE, scratch); |
448 | if (ret) | ||
449 | return ret; | ||
450 | |||
451 | return 0; | ||
452 | } | 448 | } |
453 | 449 | ||
454 | static int jmicron_probe(struct sdhci_pci_chip *chip) | 450 | static int jmicron_probe(struct sdhci_pci_chip *chip) |