From: Pu Lehui <pulehui@huawei.com>
To: <s.nawrocki@samsung.com>, <mchehab@kernel.org>,
<krzysztof.kozlowski@canonical.com>
Cc: <linux-media@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-samsung-soc@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <pulehui@huawei.com>
Subject: [PATCH -next] media: exynos4-is: Fix unused variable warning
Date: Wed, 12 May 2021 11:36:12 +0800 [thread overview]
Message-ID: <20210512033612.39982-1-pulehui@huawei.com> (raw)
GCC reports the following warning with W=1:
drivers/media/platform/exynos4-is/media-dev.c:1284:6: warning:
unused variable ‘ret’ [-Wunused-variable]
1284 | int ret;
| ^~~
This variable is not used in function , this commit
remove it to fix the warning.
Signed-off-by: Pu Lehui <pulehui@huawei.com>
---
drivers/media/platform/exynos4-is/media-dev.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/media/platform/exynos4-is/media-dev.c b/drivers/media/platform/exynos4-is/media-dev.c
index e025178db06c..3b8a24bb724c 100644
--- a/drivers/media/platform/exynos4-is/media-dev.c
+++ b/drivers/media/platform/exynos4-is/media-dev.c
@@ -1284,7 +1284,6 @@ static DEVICE_ATTR(subdev_conf_mode, S_IWUSR | S_IRUGO,
static int cam_clk_prepare(struct clk_hw *hw)
{
struct cam_clk *camclk = to_cam_clk(hw);
- int ret;
if (camclk->fmd->pmf == NULL)
return -ENODEV;
--
2.17.1
reply other threads:[~2021-05-12 3:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20210512033612.39982-1-pulehui@huawei.com \
--to=pulehui@huawei.com \
--cc=krzysztof.kozlowski@canonical.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=s.nawrocki@samsung.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®