Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1432015ybb; Thu, 9 Apr 2020 01:55:48 -0700 (PDT) X-Google-Smtp-Source: APiQypI0VwqTf6U75zki+9WE2sVYxEZY0svuuY1VQKcrrDozf8F5VxxXRTMyxK/6F+BJizsYB5CF X-Received: by 2002:a9d:728e:: with SMTP id t14mr9223987otj.63.1586422548513; Thu, 09 Apr 2020 01:55:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586422548; cv=none; d=google.com; s=arc-20160816; b=tyzdG6rQJQpqfHinrrZ/XQynOISiFN+X/KqBhrZ7mZK7zT1mzsvd/JtF5vylkv8mgf yzuSzCibjrgZVLjxy6U2z0ZVe47e8i6J1J80LZ8vuQ7cf1J8QYifov+cRpmE+JBBzq7p YBVlp2FiJFQVNFSg7GoQhov/S75JV6Le9P/7JUCFRnaa8HZzDBx3xxOIRguDon+C6aD2 CTTu5U+lZLsFWgKlLcnAFXoOP+jpOWdoTTkMthVkrhGvhAuMx3z4B7wBko8rQ3JonvTZ we14ALFZvYbcyCiN91rcIouQGhp73IoYmG2tdHAiWXzhujLubVxC7Fr0B0jDD+LnJVhc 7mGw== 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=DOEchYprZMb1PKd+mWb/iBMMTXq9o40qTUyYaHaWqks=; b=PBm9mav9HfMzEP8Q/DpN/8Va+NNKx5kD4Yr33gJ7u6g2qBtzJ8dBBoo3ofyHc/tkpz 9fgsG/FcGrF/DfvuDEdaTmbxVq/PbNjsxd2eAPkAaYCUfccGtzrsz9pZjNK5plcz+G8V 9D+Q4uAXQPa8sOb0zoChMfC9FxheFEMowD63CPq54ZqCryqzINAEllpD6qZ+xzwD51Z+ kxoPVUPq8+/1VIqPDRMiCn8L1C3oPpMuQlVyB7YIot/jY6T0QKo6n0TV2Ah1lRnqmgVf CAZhK7UtrWTB6ibfjaWzWqcu+bu9u2sk5uJ2a/L1lrIYtppBu098kxyBnzU8ZcWwquHn gOjQ== 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 l10si3123395oie.80.2020.04.09.01.55.33; Thu, 09 Apr 2020 01:55:48 -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 S1726589AbgDIIxm (ORCPT + 99 others); Thu, 9 Apr 2020 04:53:42 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12627 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725972AbgDIIxm (ORCPT ); Thu, 9 Apr 2020 04:53:42 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D2E4B838DBA7F81E605E; Thu, 9 Apr 2020 16:53:17 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Apr 2020 16:53:10 +0800 From: Jason Yan To: , , , CC: Jason Yan Subject: [PATCH] USB: serial: garmin_gps: remove some defined but not used variables Date: Thu, 9 Apr 2020 16:51:43 +0800 Message-ID: <20200409085143.46078-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 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/serial/garmin_gps.c:192:28: warning: ‘PRIVATE_REQ’ defined but not used [-Wunused-const-variable=] static unsigned char const PRIVATE_REQ[] ^~~~~~~~~~~ drivers/usb/serial/garmin_gps.c:186:28: warning: ‘GARMIN_STOP_PVT_REQ’ defined but not used [-Wunused-const-variable=] static unsigned char const GARMIN_STOP_PVT_REQ[] ^~~~~~~~~~~~~~~~~~~ drivers/usb/serial/garmin_gps.c:184:28: warning: ‘GARMIN_START_PVT_REQ’ defined but not used [-Wunused-const-variable=] static unsigned char const GARMIN_START_PVT_REQ[] ^~~~~~~~~~~~~~~~~~~~ drivers/usb/serial/garmin_gps.c:182:28: warning: ‘GARMIN_APP_LAYER_REPLY’ defined but not used [-Wunused-const-variable=] static unsigned char const GARMIN_APP_LAYER_REPLY[] ^~~~~~~~~~~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/usb/serial/garmin_gps.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/usb/serial/garmin_gps.c b/drivers/usb/serial/garmin_gps.c index ffd984142171..3b39d1e39fbf 100644 --- a/drivers/usb/serial/garmin_gps.c +++ b/drivers/usb/serial/garmin_gps.c @@ -179,19 +179,10 @@ static unsigned char const GARMIN_START_SESSION_REPLY[] = { 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0 }; static unsigned char const GARMIN_BULK_IN_AVAIL_REPLY[] = { 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0 }; -static unsigned char const GARMIN_APP_LAYER_REPLY[] - = { 0x14, 0, 0, 0 }; -static unsigned char const GARMIN_START_PVT_REQ[] - = { 20, 0, 0, 0, 10, 0, 0, 0, 2, 0, 0, 0, 49, 0 }; -static unsigned char const GARMIN_STOP_PVT_REQ[] - = { 20, 0, 0, 0, 10, 0, 0, 0, 2, 0, 0, 0, 50, 0 }; static unsigned char const GARMIN_STOP_TRANSFER_REQ[] = { 20, 0, 0, 0, 10, 0, 0, 0, 2, 0, 0, 0, 0, 0 }; static unsigned char const GARMIN_STOP_TRANSFER_REQ_V2[] = { 20, 0, 0, 0, 10, 0, 0, 0, 1, 0, 0, 0, 0 }; -static unsigned char const PRIVATE_REQ[] - = { 0x4B, 0x6E, 0x10, 0x01, 0xFF, 0, 0, 0, 0xFF, 0, 0, 0 }; - static const struct usb_device_id id_table[] = { -- 2.17.2