Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1221192img; Fri, 22 Mar 2019 19:35:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjbrd8BMEIe9HoxpZAfVba55PV/JvlUxEUEnJUmD1rBDjakiabfsb0z1ns4czZ9Xghk1FA X-Received: by 2002:a17:902:2bc9:: with SMTP id l67mr12772910plb.102.1553308509763; Fri, 22 Mar 2019 19:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553308509; cv=none; d=google.com; s=arc-20160816; b=Zq1jP5t3K4msoDjv6BT2VxDg8xjSorc2BwtUSZNGlFJe6wrzEnrLSHSLPVPBm3nGJQ xZ4p8L6+eXvCLfwJmV2ySukXwMel+a/3EeFgLHsLedcLai5PnI05Ku4LNAfvfBjVVoi2 qWl6vCCjb340PL+ZWOZV8URI/vNM4StQT9p0sqqmoMuHVhtk5/Sf3p69AO8H0MIvk/b9 AvZ0jcazlcowqPwMOTZ8F7BtTwRAZ6RjyHh0dM/QujZlO60oV2OtLk23YRXBaWCwrPs0 t58pTA3yYWDrnC18Vy4idtvLIsLVMAyVHRNWsLzG1bnOsnhZjUjK7tBo99KuUaW+HkVl TIdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=sn+Fd2KvWch2+0/LtMf4UNW55UaT2jLrB+EHypByD0c=; b=aFWBqiFfnGExXp0+2g7+6Uh/kxipQ8UBIfLPTRDqMohAfzBBZhRX0yvoksYG8SZOac 6xVtWMlTkhm5SXh1duRaCdHIGmgnn6cRsT46fW8ZmTx/qdxHkz6LNvZLvUqb5pYX4HTu ETOIshI33XuhMIYdTAJUZoSmCpoZus2koiNUB8krPVRKbUKWLFiV5Gs/MobFtc9nTX6j t0eROL6T7BDuBxqEJISuYS+wewFR4Vqj7IhdSb35mZ9XBWpRO6pNQgCVdWqtJeRh30Df R8xhh2jQ3eGHPboeSQYeGkGDze7VSp2LBRq0SYRqi9baCv/HpuYQ4zy5sRDqKpXk34xS L0nQ== 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 65si8202920pff.260.2019.03.22.19.34.54; Fri, 22 Mar 2019 19:35:09 -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 S1728310AbfCWCeN (ORCPT + 99 others); Fri, 22 Mar 2019 22:34:13 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5178 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727733AbfCWCeN (ORCPT ); Fri, 22 Mar 2019 22:34:13 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 48DE9347B86C9A526FA9; Sat, 23 Mar 2019 10:34:11 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.408.0; Sat, 23 Mar 2019 10:34:04 +0800 From: YueHaibing To: VMware Graphics , Thomas Hellstrom , David Airlie , Daniel Vetter CC: YueHaibing , , , Subject: [PATCH -next] drm/vmwgfx: Remove set but not used variable 'fb_offset, fb_depth' Date: Sat, 23 Mar 2019 02:46:06 +0000 Message-ID: <20190323024606.163683-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT 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/vmwgfx/vmwgfx_fb.c: In function 'vmw_fb_init': drivers/gpu/drm/vmwgfx/vmwgfx_fb.c:645:29: warning: variable 'fb_offset' set but not used [-Wunused-but-set-variable] drivers/gpu/drm/vmwgfx/vmwgfx_fb.c:645:19: warning: variable 'fb_depth' set but not used [-Wunused-but-set-variable] They're not used any more, so can be removed. Signed-off-by: YueHaibing --- drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c index 2a9112515f46..86efb91f5034 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c @@ -642,12 +642,11 @@ int vmw_fb_init(struct vmw_private *vmw_priv) struct vmw_fb_par *par; struct fb_info *info; unsigned fb_width, fb_height; - unsigned fb_bpp, fb_depth, fb_offset, fb_pitch, fb_size; + unsigned fb_bpp, fb_pitch, fb_size; struct drm_display_mode *init_mode; int ret; fb_bpp = 32; - fb_depth = 24; /* XXX As shouldn't these be as well. */ fb_width = min(vmw_priv->fb_max_width, (unsigned)2048); @@ -655,7 +654,6 @@ int vmw_fb_init(struct vmw_private *vmw_priv) fb_pitch = fb_width * fb_bpp / 8; fb_size = fb_pitch * fb_height; - fb_offset = vmw_read(vmw_priv, SVGA_REG_FB_OFFSET); info = framebuffer_alloc(sizeof(*par), device); if (!info)