From patchwork Tue May 11 15:04:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 12251299 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02C7BC433B4 for ; Tue, 11 May 2021 15:06:33 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A061961005 for ; Tue, 11 May 2021 15:06:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A061961005 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=ieFwQkMg+kMREDFOT6BkVW1u1r3acv/UDquAoMjoFQ8=; b=o2yeeAlmxoqOEYzt+4l0kpJdH0 uzCXhZUFYc2pt3ZNlI/f0Mt4bTp4yxWj/3IAbjSjr+GjlcU47Y3KJm9GgNla4Zgv3RhfS3Lg124bg CDMl7QafETLVxxYWDYEFefVFwvxi/m3nrhHRom5yP4FksW2SrTh4qHVKqIYF4B6qW3tAeRXjLVUap DSk2MPGfHRTEqgBUZh2RglCyNNNxPQg9jjO8RsGYABVSKM6X7kkwNDaOVTW/zqtFW+xaxwyXO3wNN v6nJzTHIACBGwXOeJiNDkcOlN9WZg0ud2/qGpQbElfmQZgCPW5F1FQZbCQMOFLF97aMYhJTH2q16G l6W9EUQw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgTwK-000YSz-NC; Tue, 11 May 2021 15:04:53 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgTwH-000YSe-06 for linux-arm-kernel@desiato.infradead.org; Tue, 11 May 2021 15:04:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=Kjb+mTUUuFyTSA5WthxSj7f/kOrvGT3fWGDHhzwNE2Y=; b=b9n3TsWZH2ZxM0jUDME/2bQtcx FXSu8ewoyKZDrkczZrYXd6ah2NnzbqNtBhgWK5Umlu3L8rkxUUtrHndt+DA3Tc8/E6Q+8NMtOZhpn FBKJ9UbWBvhSnbLl8MkN4806uSWaf+lxxrxlf25PratzZICLZuwEsbD8ibsMyk5MYWzE4zldm+SwD oi+PbkuXfS/MVf2dak7klGFqCSpq6Ym/YioQwSCIVhwEyLIh+72peUa+N2/ac5ZELaadvjGJOiYE9 6pv0T+v4O1c1l6s/jocHRU7kmAk0X8l+crQ7+Gj9SojWtiOQYnH4DSWTF6RstUTmiNZzdW7ug9w0P 3w/ppbYw==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgTwE-009hfn-EZ for linux-arm-kernel@lists.infradead.org; Tue, 11 May 2021 15:04:47 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id BBAED61396; Tue, 11 May 2021 15:04:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620745485; bh=QN33XNL4eU4wfIvNKbVPaGGaRPresFBOIcGCOpOsiYc=; h=From:To:Cc:Subject:Date:From; b=pO0wreEAr5IngwB3qFnJeEzTE5D5lQfQm188kdLrwLyruwH9AvHxU8fDMOaeGgJtd Bb+snQ4uoKnntAWnOjEruRSl5olljR3mGFo96rs04OxJZpxGFMI7B17CjR2+r8QZtv /hj2RUUVKshRVK5O8W0HCDfdPw+7/RtlPvwWNJ/YNsGPCJCM6Gv34b/atmVzk8q3c2 XKPs0WbCO7dDUYTusE2RRgEwZ3FSpFo1CXHVgwAV1vdkitCQqxB3GLL6ywYIUA/qYX rImQGfJo8zSR4ndqonZsDCGdpAa4uYZlrjwHTypWn1A/UdFzB1QnTOrgKdjTNbT/N9 qjXv2gNYs79+Q== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1lgTwB-000k6n-A1; Tue, 11 May 2021 17:04:43 +0200 From: Mauro Carvalho Chehab To: Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Krzysztof Kozlowski , Mauro Carvalho Chehab , Sylwester Nawrocki , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Stephen Rothwell Subject: [PATCH] media: exynos4-is: remove a now unused integer Date: Tue, 11 May 2021 17:04:42 +0200 Message-Id: <29dd19e3ac7b2a8671ebeac02859232ce0e34f58.1620745479.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210511_080446_546196_360147D1 X-CRM114-Status: UNSURE ( 8.28 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The usage of pm_runtime_resume_and_get() removed the need of a temporary integer. So, drop it. Fixes: 59f96244af94 ("media: exynos4-is: fix pm_runtime_get_sync() usage count") Reported-by: Stephen Rothwell Signed-off-by: Mauro Carvalho Chehab --- 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;