Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4105110pxj; Tue, 11 May 2021 20:37:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrIelpy5ctfn9WNBg+7kueGCP6zslcM6BO+PR3C4UDKpAz2LNd8RjEA7nhDB4PsE+56KOs X-Received: by 2002:a17:906:a055:: with SMTP id bg21mr35022449ejb.554.1620790663407; Tue, 11 May 2021 20:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620790663; cv=none; d=google.com; s=arc-20160816; b=b+aaA8k8NpvaKLHkpD4W2zOcPo6T91QATfDinPYZvyNh7RvZQtA3UWT2BtZjPcTLLD v9T5dl9cu4LY40vFgOHIiY8JgRl5aDrnlAILCNc3GYFQ92ruDYMPIR9oXv6wX6gUVvqK JXn79TJ2iBGngN51QfroqUQuxHP1xApbl0gGJSl1NOLJ/kDu2dmSPjx8BZ2g1W3Pdngh VBybgMpw6kqFnKeDWR7q9sy3qiPe6DFrqIcBpXqkj3zLbKQJV4AG+uIyOhcpcRfkZGhc snGzWoKNW7iWDlch3kTbTeUeVv87bJRRQh+/u5XrKAWjJg3OWdl6mA1dlZcSGjqhbeRT UroA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ggWCBC1zK0G5q3S4AcQ5Vj2agee++4Sseq1LxaRd8ZA=; b=s4j9IG37ZCbXlttukDtULwa8nt1NaTSUax5h9dLBp+XsMPXUgsJpkrLj5CFbx1dzSe FAz138YI+kQ3k8WR8WjEPfmpOeWG4ewyTIp4+iykmUp8yu2Zc3L9gHEwaXNPPnfb2ai+ 348dOghEL2mOoJVoCPT7MmCdBzWWQv81mX+jpywaO0egKwzC/IBNjYb/8MTtrzRzhLNA QVLd0h5bzjCLjzbmQAH0IKPL68nMeyCE9Z3+2U2z53Ju0nGNBMwoErBTZyVgMz02bIXp 0GvtcJ0FVzSna3mWfN5jIpuDazOdnTLB3piaLiz4LtKvwXwwyUIcEA6X1CbATohKdgKF K52A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n25si18172193edq.246.2021.05.11.20.37.19; Tue, 11 May 2021 20:37:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230111AbhELDhE (ORCPT + 99 others); Tue, 11 May 2021 23:37:04 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2786 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbhELDhE (ORCPT ); Tue, 11 May 2021 23:37:04 -0400 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.174.98] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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; -- 2.17.1