From patchwork Wed May 12 03:36:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pu Lehui X-Patchwork-Id: 12252633 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.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 88384C433B4 for ; Wed, 12 May 2021 03:38:06 +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 55FAD61432 for ; Wed, 12 May 2021 03:38:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 55FAD61432 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com 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=lWOc2dFa48UBXW6h63fRvQYQ8zw5DyXWoCEAESigm2I=; b=bsT3UUuR6bYFo2UCdA2yVbj+7G nLN2JGu1/V70+rSTuM+I+14ftXefC3N8mCbIdEEuydISdvgJf8FjGwyei7xUYjyMTlGz4euZhZKOX jf5ZogynEU3V5zRKURmFL4r+LD1z1weVVXzcbjPUYEwHn3hc4NT5+uC4PysGrQ28IIdJE23aXrrrV JxED+nBPfEczIoqStOW2HuOWWuomH4iXZCdPiNibzUX317yQqY6e4olr0H61BwTPbdo2MGbhuRb6x SYiUYSaZYCOviJwLzyrbZ0kWhNh5sZmu5Y61CXw2gJyL4m/edW0KA1goyxSs7Lv2IMdyYaRqRZ3jg 4SMRQn3A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgffR-001tpm-Eg; Wed, 12 May 2021 03:36:13 +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 1lgffO-001tpb-9s for linux-arm-kernel@desiato.infradead.org; Wed, 12 May 2021 03:36:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=ggWCBC1zK0G5q3S4AcQ5Vj2agee++4Sseq1LxaRd8ZA=; b=blTl/9qEI8QTlqHeoP3gCDe6JQ vFt1Fzd6VXsN7IDhjZ1jWJ9dBWGQmnploGOoeAYrFeyh9wekK2yDTHdnYVTJdq64VuIpfDII5ST4Q Vtk0+a6hHtFvr6l16GCKR79s7Dr2dZI5fhLJKemjMl81zwCb1meVJ8JyB1HYw3d81x9zcau/iyIiP vPM95nBc419wi4+kVQHmCLbhR1j5rMGJvQBlEsNqQreQKr7jm+t2XH0UokeaYQPgNlIzDAcr2uFsW 1Zxuv+K1a1Az+GU9e+TWU4RVS2tajrB+hoYxEg0Poz/zyGeVy3Z6iZMPpiz79K4vsbHNJLdqnc7wE lt1xIrGw==; Received: from szxga04-in.huawei.com ([45.249.212.190]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgffK-00A4M8-94 for linux-arm-kernel@lists.infradead.org; Wed, 12 May 2021 03:36:07 +0000 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Fg0jF1nVHzmg9Y; Wed, 12 May 2021 11:32:33 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.98) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.498.0; Wed, 12 May 2021 11:35:45 +0800 From: Pu Lehui To: , , CC: , , , , Subject: [PATCH -next] media: exynos4-is: Fix unused variable warning Date: Wed, 12 May 2021 11:36:12 +0800 Message-ID: <20210512033612.39982-1-pulehui@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.67.174.98] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210511_203606_493847_75EA6F60 X-CRM114-Status: UNSURE ( 9.07 ) 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 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 --- 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;