Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5962070imu; Mon, 21 Jan 2019 00:23:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN6OQkqPHhcVxJmb+3rSiinyzBML0sbUENd6bz00FQhJ2I69Dy70l1wxymWU2FEmnPGtPznb X-Received: by 2002:a62:4851:: with SMTP id v78mr29063702pfa.97.1548059018490; Mon, 21 Jan 2019 00:23:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548059018; cv=none; d=google.com; s=arc-20160816; b=SCamCcEzT/6bioefnpMucP/d1zPqBkaJ3HLE6pigfG5EUszqGTZQ8wbFhT27m9IwZV BaMKmzRJWPpqbV8LNJWl82vXprHPYO+SZ2IEpjopOCSHXxTtcezjqy29sCCnsMo0S22i oNcjR8Tu8MzM35K5Lfa98EmWJCGf00CbvDUVgs/ICvescw0SzYpTIC5BtBtbhpRkTIyt /EN2d58y4tzjR0QfQHN9e+JqliB+TXyq9POvUGpZAf9/qppL55gLVmo9052XtiAJQwSH hQIdGOkRyCNqgES7F1T1Pav7rnI3WYEdlVKQzn6/4Nv/maENuguETIyc3ILK15kVpilY L6ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from; bh=nsHtccZmH7DhVDgxLEqdcne23qf4Dcyj5JQ2WbHbmww=; b=E/K8qFBzkKscznqFOvSrzxIoF9RyuZ9ebazybA0m6WPyuZ2BWz/Knkr5tCTdb3QukJ VktrUpH/xYf5FfdYScZuEQvN3gU82PW6msyNg4CX2P82j+1n7FdSgWFBEPwi+6HBzM7w GsSZ6Cz0bz9+AOvezK4REA6LeneE6fVD5IVtLmCYagAoIxI6z9ValOFb44kBZnztMsyK rgvTqAwExHWdb5ifXEkRK7//2LclZx+kIdoGpGukQykqEp8dNorC+jLaOVGy7MgzS9ot IDMbcE+ZIxpXTquLGC2fGqRh2hR+uH/wGpHLaJQ6MW+wsfJnAN1XFPbNfRZbgux+WPm/ gGCA== 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 11si11799171pgy.408.2019.01.21.00.23.23; Mon, 21 Jan 2019 00:23:38 -0800 (PST) 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 S1729792AbfAUIVp (ORCPT + 99 others); Mon, 21 Jan 2019 03:21:45 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:44926 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729770AbfAUIVm (ORCPT ); Mon, 21 Jan 2019 03:21:42 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 1B6E5AD334B1C99E46CE; Mon, 21 Jan 2019 16:21:40 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.408.0; Mon, 21 Jan 2019 16:21:31 +0800 From: YueHaibing To: Yannick Fertre , Philippe Cornu , Benjamin Gaignard , Vincent Abriou , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre Torgue CC: YueHaibing , , , , , Subject: [PATCH -next] drm/stm: ltdc: remove set but not used variable 'src_h' Date: Mon, 21 Jan 2019 08:27:21 +0000 Message-ID: <1548059241-148022-1-git-send-email-yuehaibing@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1538131180-34108-1-git-send-email-yuehaibing@huawei.com> References: <1538131180-34108-1-git-send-email-yuehaibing@huawei.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/stm/ltdc.c: In function 'ltdc_plane_atomic_check': drivers/gpu/drm/stm/ltdc.c:694:13: warning: variable 'src_y' set but not used [-Wunused-but-set-variable] u32 src_x, src_y, src_w, src_h; ^ ^ drivers/gpu/drm/stm/ltdc.c:694:6: warning: variable 'src_x' set but not used [-Wunused-but-set-variable] u32 src_x, src_y, src_w, src_h; ^ Signed-off-by: YueHaibing --- drivers/gpu/drm/stm/ltdc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index 61dd661..a91e041 100644 --- a/drivers/gpu/drm/stm/ltdc.c +++ b/drivers/gpu/drm/stm/ltdc.c @@ -691,7 +691,7 @@ static int ltdc_plane_atomic_check(struct drm_plane *plane, struct drm_plane_state *state) { struct drm_framebuffer *fb = state->fb; - u32 src_x, src_y, src_w, src_h; + u32 src_w, src_h; DRM_DEBUG_DRIVER("\n"); @@ -699,8 +699,6 @@ static int ltdc_plane_atomic_check(struct drm_plane *plane, return 0; /* convert src_ from 16:16 format */ - src_x = state->src_x >> 16; - src_y = state->src_y >> 16; src_w = state->src_w >> 16; src_h = state->src_h >> 16;