Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1482282imu; Sat, 8 Dec 2018 00:30:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wa0WXBV2Dx9lt2ttX+zBY4fIRA5r3PLcEt3BPQpBauztdBpAChTy4RRU2CHC3rseYYpTSx X-Received: by 2002:a62:1c96:: with SMTP id c144mr5154688pfc.129.1544257801058; Sat, 08 Dec 2018 00:30:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544257801; cv=none; d=google.com; s=arc-20160816; b=mi6yX1m81fmynAcaUwCR0pizq6nqjRBasntaY635Zl3d3YskAHMSCjE/yxfW0NVuRH PcUNIh2zZJ5x/0nNP7y3Ho9jxliaRHM06dQexONqvO9Lu/RPH0WwH7MgTMmqxUoYZ8Qw mmI1vU9TDf7BmRC5gFINe8LvQyPPtzDOroMO7Bp7zYTrtcEFAEAetMGtQjz/txeM1P8d kFx7DXfPAbR/ONZICa8+2AUixmoIhSLVxDuz4Kc6/qWRmZDpwQRUnBLMJVfHbt+KfJIk snxkw0GYNYKO9yI1TgnQUxg1S3qO4NH3Dog6A+VrLmIpQc/p9ffZV6fGpT5aftkFO9Dc tu3g== 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=wmMeM3j3ZlEQuoiK84MJ4MV4YmFdXRSq0iWR0rR0EE4=; b=OhpsNWLGA0YwTOidH7doXKxE4qHBrV8bg9FYOwZFWP5mF24nWNDuOkBIUrW1BeIEOo cHrhDo8INlZrPQCZYLivGDuY9aBUdvT2lKXu/nz+ccw2m3yv0FTx6DmkHbYxwTBqQ0Gp LKHh6kBKSIQY+aNlz7hh4a2ALV76TnTVbR2VGq7XUC0n1dSK5VU5NyGPE4FoYFCuRHE0 9LVuzf/YRzHfcQYTzt8Pc1uepSUp5HUqpDvJknqoWPtn6INvsV0mJvBvsNDzUACKYz7j ir/h+8g+GpGSo73Z7T2+duwtLpdDszFH32nkvxwryDanCAS8po2RfI1Nbp4O/29/qKaY ZtpA== 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 a6si4656825pgc.137.2018.12.08.00.29.31; Sat, 08 Dec 2018 00:30:01 -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 S1726179AbeLHI23 (ORCPT + 99 others); Sat, 8 Dec 2018 03:28:29 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:15664 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726103AbeLHI22 (ORCPT ); Sat, 8 Dec 2018 03:28:28 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 0BA77E99055D9; Sat, 8 Dec 2018 16:28:25 +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.408.0; Sat, 8 Dec 2018 16:28:16 +0800 From: YueHaibing To: Dave Airlie , David Airlie , "Sam Bobroff" , Daniel Vetter CC: YueHaibing , , , Subject: [PATCH -next] drm/ast: Remove set but not used variable 'bo' Date: Sat, 8 Dec 2018 08:36:25 +0000 Message-ID: <1544258185-50430-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/ast/ast_fb.c: In function 'astfb_create': drivers/gpu/drm/ast/ast_fb.c:194:17: warning: variable 'bo' set but not used [-Wunused-but-set-variable] It never used since introduction in commit 312fec1405dd ("drm: Initial KMS driver for AST (ASpeed Technologies) 2000 series (v2)") Signed-off-by: YueHaibing --- drivers/gpu/drm/ast/ast_fb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/ast/ast_fb.c b/drivers/gpu/drm/ast/ast_fb.c index de26df0..c2e4136 100644 --- a/drivers/gpu/drm/ast/ast_fb.c +++ b/drivers/gpu/drm/ast/ast_fb.c @@ -191,7 +191,6 @@ static int astfb_create(struct drm_fb_helper *helper, int size, ret; void *sysram; struct drm_gem_object *gobj = NULL; - struct ast_bo *bo = NULL; mode_cmd.width = sizes->surface_width; mode_cmd.height = sizes->surface_height; mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7)/8); @@ -206,7 +205,6 @@ static int astfb_create(struct drm_fb_helper *helper, DRM_ERROR("failed to create fbcon backing object %d\n", ret); return ret; } - bo = gem_to_ast_bo(gobj); sysram = vmalloc(size); if (!sysram)