Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp849775yba; Fri, 26 Apr 2019 09:43:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqylE0LlQiXHWyPCZwLPVVvETbsUyxig3kBpQoarnHm9679Bmpg+qIpIa0k8sfOV0p/R4OTg X-Received: by 2002:aa7:8208:: with SMTP id k8mr13713802pfi.69.1556297021726; Fri, 26 Apr 2019 09:43:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556297021; cv=none; d=google.com; s=arc-20160816; b=BbwrljBpI7wOMJvw7mGq+VxfQjl25yz2irWHOciDCG2GURJY4VMBGfWpHv8wMa/D99 0ahJO3cBO6aJwe8g5ek74iby78/83BrKz2JlhSs9QVkGCWKBsBuTvr+froptaNUMfIqi 2EBsHfXrVQcojbypz6JXBWC8lgpfLVHmm4FeYxSNRxSXMaE7h9acMTMlaCYcc9g+IkP6 ilosC8c8ZE+vfbpF97UoMJN/jLjzGql0u0BddwE2mSpsLPLgrvVC9aTVoIBuiyGKVfLl 6dmQYw3os6LGnUZpEr4hMWWUbABcWsDVBtBYvA3bPhieycQjLznVlFyPiUp9d30ZdHbQ Yi9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=w5bGOpHd2D/gv40huaY5xyI2dB+K9o4mf+tUGBZZyFw=; b=eNh0lOHTMFfqNf/yUzNBje8/tEZRpNngSElTYia4KBBvjG74ec1HZRBZDuxEvEfoJ3 DeXSh8FM6YPmdCSBPbPQWkziaVZwdWHois66e+TnGmE+CeNeR7VSouQYpp7+iq11MrRI rmumQ71rhL7zrkIXQqTPPBzlO6bsufXVtNq+LSRUUk/hoDFOjBwf310bAi0aj+QMS6kL dSwJ5WikFpB4gsxapycnx5FPkgHrsCHB7bhPZ1pTHa7fimVkuxQlH3CCAaJjzhxBBBBn yDZpwItWmUuoa180uv+azWPczXK55mBMrUf/f16XVWRlOEr/X8yD+I+1Fktp62OLSkEl tTXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si5013383pfn.202.2019.04.26.09.43.26; Fri, 26 Apr 2019 09:43:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726357AbfDZQmZ (ORCPT + 99 others); Fri, 26 Apr 2019 12:42:25 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7697 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726184AbfDZQmZ (ORCPT ); Fri, 26 Apr 2019 12:42:25 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id ACA57BAFC13D27132B9F; Sat, 27 Apr 2019 00:42:22 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Sat, 27 Apr 2019 00:42:09 +0800 From: Yue Haibing To: , , , , CC: , , YueHaibing Subject: [PATCH -next] drm/komeda: remove set but not used variable 'kcrtc' Date: Sat, 27 Apr 2019 00:42:02 +0800 Message-ID: <20190426164202.34932-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/arm/display/komeda/komeda_plane.c: In function komeda_plane_atomic_check: drivers/gpu/drm/arm/display/komeda/komeda_plane.c:49:22: warning: variable kcrtc set but not used [-Wunused-but-set-variable] It is never used since introduction in commit 7d31b9e7a550 ("drm/komeda: Add komeda_plane/plane_helper_funcs") Signed-off-by: YueHaibing --- drivers/gpu/drm/arm/display/komeda/komeda_plane.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_plane.c b/drivers/gpu/drm/arm/display/komeda/komeda_plane.c index 07ed0cc..0753892 100644 --- a/drivers/gpu/drm/arm/display/komeda/komeda_plane.c +++ b/drivers/gpu/drm/arm/display/komeda/komeda_plane.c @@ -55,7 +55,6 @@ komeda_plane_atomic_check(struct drm_plane *plane, struct komeda_plane_state *kplane_st = to_kplane_st(state); struct komeda_layer *layer = kplane->layer; struct drm_crtc_state *crtc_st; - struct komeda_crtc *kcrtc; struct komeda_crtc_state *kcrtc_st; struct komeda_data_flow_cfg dflow; int err; @@ -73,7 +72,6 @@ komeda_plane_atomic_check(struct drm_plane *plane, if (!crtc_st->active) return 0; - kcrtc = to_kcrtc(state->crtc); kcrtc_st = to_kcrtc_st(crtc_st); err = komeda_plane_init_data_flow(state, &dflow); -- 2.7.4