From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [PATCH] mmc: via-sdmmc: fix returnvar.cocci warnings
Date: Mon, 08 Mar 2021 06:32:00 +0800 [thread overview]
Message-ID: <20210307223200.GA43429@8a16bdd473dc> (raw)
In-Reply-To: <202103080651.ah6vLo7l-lkp@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1756 bytes --]
CC: kbuild-all(a)01.org
CC: linux-kernel(a)vger.kernel.org
TO: Vaibhav Gupta <vaibhavgupta40@gmail.com>
CC: Ulf Hansson <ulf.hansson@linaro.org>
CC: Bruce Chang <brucechang@via.com.tw>
CC: Harald Welte <HaraldWelte@viatech.com>
CC: linux-mmc(a)vger.kernel.org
CC: linux-kernel(a)vger.kernel.org
From: kernel test robot <lkp@intel.com>
drivers/mmc/host/via-sdmmc.c:1274:5-8: Unneeded variable: "ret". Return "0" on line 1295
Remove unneeded variable used to store return value.
Generated by: scripts/coccinelle/misc/returnvar.cocci
Fixes: 0d776e5bede6 ("mmc: via-sdmmc: use generic power management")
CC: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a38fd8748464831584a19438cbb3082b5a2dab15
commit: 0d776e5bede6d375c617a03262eee9d2a8a58b75 mmc: via-sdmmc: use generic power management
:::::: branch date: 2 days ago
:::::: commit date: 8 months ago
Please take the patch only if it's a positive warning. Thanks!
via-sdmmc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/drivers/mmc/host/via-sdmmc.c
+++ b/drivers/mmc/host/via-sdmmc.c
@@ -1271,7 +1271,6 @@ static int __maybe_unused via_sd_suspend
static int __maybe_unused via_sd_resume(struct device *dev)
{
struct via_crdr_mmc_host *sdhost;
- int ret = 0;
u8 gatt;
sdhost = dev_get_drvdata(dev);
@@ -1292,7 +1291,7 @@ static int __maybe_unused via_sd_resume(
via_restore_pcictrlreg(sdhost);
via_init_sdc_pm(sdhost);
- return ret;
+ return 0;
}
static SIMPLE_DEV_PM_OPS(via_sd_pm_ops, via_sd_suspend, via_sd_resume);
prev parent reply other threads:[~2021-03-07 22:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-07 22:31 drivers/mmc/host/via-sdmmc.c:1274:5-8: Unneeded variable: "ret". Return "0" on line 1295 kernel test robot
2021-03-07 22:32 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210307223200.GA43429@8a16bdd473dc \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.