Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp580067imm; Fri, 28 Sep 2018 03:31:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV609AHXG7t/F7e/mvZnAexgZgsW5x4DVmTSb9UQpK6Q9iq+PJnjASI277O3UQ9tRVkq/jmsG X-Received: by 2002:a63:3747:: with SMTP id g7-v6mr2724447pgn.59.1538130667125; Fri, 28 Sep 2018 03:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538130667; cv=none; d=google.com; s=arc-20160816; b=yd7I72ne9eetAGc0MIwrtWQ7J6xW/wdtYMN2QKffGBqLZ1GAU/5HmHD0xs+ZPiP8gQ UIzyHXmHhpD8dA4wRJZpR8+L8C+vD20CEVonMypKJuw1riZWa6Ecilo2gKfjIubX5TWo oHr4i98vD0jSsjnKJoQRpLqYQ2+bIUdcVuorKTGzMpTLW/4q6dw/dAjkFLCOHIrE4L4A KY+K9etgdxGw4mfif03t6mt6Oe6K4sGY1y26TVr3mUbvdNt9c4ftNdLnP2jo8XGQl155 U70Nzk0/xoDugINPZaWDF5uXf4W59lQGg+fMrRIUvjQG1f8F/vhNo2j/psjXt3+kh31r ac4g== 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 :message-id:date:subject:cc:to:from; bh=nsHtccZmH7DhVDgxLEqdcne23qf4Dcyj5JQ2WbHbmww=; b=Jl/Kbdu4ATTj+wHMsbWfRhMdSoUzV2/oNP7E7noIzJYtgRhG0IJzZcKEoL2l0naffM 4XS1ps3wOIcovIMlfg6PS4IEzIVhkHYcw4q+1WUbVTuI0Qp7H5CIvSEZinADKTR962Gm 3nOArPsf7CnBOQaq1FrL8UAs3HNLdzmPQSPDI6Vf7mSAaETYADIpcuFg1S9FzLm4ZzSg njdYJiSZYH0JBN9ZV9rIo9TjNOayKND2cBtdjoC7nC31KKWTn0Y3Hp1TxlIkYwQHoNZR g9TfpsGqa5YZYwjPqm1sHdwJ1q/PNxWMMm73SH4A31EOrsMz8I9zMQtiXRZX5lhgRq6W UTdw== 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 18-v6si4420584pgx.173.2018.09.28.03.30.51; Fri, 28 Sep 2018 03:31:07 -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 S1729294AbeI1Qxv (ORCPT + 99 others); Fri, 28 Sep 2018 12:53:51 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13168 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729093AbeI1Qxv (ORCPT ); Fri, 28 Sep 2018 12:53:51 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 04DD3D20E4287; Fri, 28 Sep 2018 18:30:41 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.399.0; Fri, 28 Sep 2018 18:30:35 +0800 From: YueHaibing To: Yannick Fertre , Philippe Cornu , Benjamin Gaignard , Vincent Abriou , David Airlie , Maxime Coquelin , Alexandre Torgue CC: YueHaibing , , , , , Subject: [PATCH -next] drm/stm: ltdc: remove set but not used variable 'src_h' Date: Fri, 28 Sep 2018 10:39:40 +0000 Message-ID: <1538131180-34108-1-git-send-email-yuehaibing@huawei.com> X-Mailer: git-send-email 1.8.3.1 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;