Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp252548ybz; Fri, 17 Apr 2020 00:06:49 -0700 (PDT) X-Google-Smtp-Source: APiQypJAd6mkdHi+SoLt+EXbxLeShMvMpHrnCx5tpT4AYAhd3VZL0W1plURMfmix3xTraP1s2UJF X-Received: by 2002:a17:906:3da:: with SMTP id c26mr1678333eja.290.1587107209743; Fri, 17 Apr 2020 00:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587107209; cv=none; d=google.com; s=arc-20160816; b=0VxunQ8TDlTE5DJLKv/LOyyYZFhQclqVTVvsLKYm+74l2Lfa7WGOezKVO+sYLqqOGI GeFCD5jS9mpFhfVF/HM0RF9Qiz9GtcofHoRQKDnCjXfM57AlbgB/R/Pv03AhTU8Jkzee elstVKnNYweUx3jah0/4PAR5NlcNwmcRGllz31FJwCyghtcPSezcFP7S9Mxe5bpWVAC1 yAbMBLOc0yioJYXg2IOefLpfTjoGG1PqAYn/Veu/0yMXRApbs88Q4P5FhCY2ZzUOiTQR NKDhOG0jfrzniYO+mj3ANa8L1T7uckdcOXALws5r1wjd2gmtrtmRlA1EqEeGufVHFRAQ eAgA== 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=lSWcaN+oUJDjwH7ZeK1PbAlToks/9yOdW6wE6tWZgcM=; b=m2wiuzvV5M4Td4jQQ2H+exCVZN76ju/S1KKMGEQuyWpJrFgtZA3OOOW32BvNnl/4iJ urWDBA8FF/evGyd8z1oZ5lbumqVpkSGtVo3b4lMIB2YH/5JHEpGdPbtxTRubfjswnEx+ vyta5z+JlkGoCxCM08p8BArIB+DRpCISMoS5FpM/ksU+rsFVxxc79COtpT/C9MjFiFws qEEawBKZu/IR4LZ7w/pNhUnceUn+0IdksC74HTaWYIs6UGc+N0fnIGldV/joJSmxsIUV ogZ+vIFBnh5rTsauICXsciTrF7w8iZwc3+N+IsNiFr1WbyeKD2IgklvhXIjSgYqoWbkp JWBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m4si8660675eje.107.2020.04.17.00.06.27; Fri, 17 Apr 2020 00:06:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728513AbgDQHF2 (ORCPT + 99 others); Fri, 17 Apr 2020 03:05:28 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:37506 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728338AbgDQHF2 (ORCPT ); Fri, 17 Apr 2020 03:05:28 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 21195FAFA0058E0C2AA7; Fri, 17 Apr 2020 15:05:26 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Fri, 17 Apr 2020 15:05:18 +0800 From: Jason Yan To: , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] usb: gadget: udc: remove unused 'driver_desc' Date: Fri, 17 Apr 2020 15:31:37 +0800 Message-ID: <20200417073137.39968-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/usb/gadget/udc/gr_udc.c:51:19: warning: ‘driver_desc’ defined but not used [-Wunused-const-variable=] static const char driver_desc[] = DRIVER_DESC; ^~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/usb/gadget/udc/gr_udc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/gadget/udc/gr_udc.c b/drivers/usb/gadget/udc/gr_udc.c index aaf975c809bf..7164ad9800f1 100644 --- a/drivers/usb/gadget/udc/gr_udc.c +++ b/drivers/usb/gadget/udc/gr_udc.c @@ -48,7 +48,6 @@ #define DRIVER_DESC "Aeroflex Gaisler GRUSBDC USB Peripheral Controller" static const char driver_name[] = DRIVER_NAME; -static const char driver_desc[] = DRIVER_DESC; #define gr_read32(x) (ioread32be((x))) #define gr_write32(x, v) (iowrite32be((v), (x))) -- 2.21.1