From patchwork Mon Jul 6 13:33:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234874 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4781278ilg; Mon, 6 Jul 2020 06:36:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsf4GmAmUtuC6ZV6limtCLALK+oXVoIkgPBvCJxsLZVJwaAnu/4YralAGA/fvf1PyRB5mC X-Received: by 2002:a17:906:f298:: with SMTP id gu24mr42785706ejb.302.1594042568968; Mon, 06 Jul 2020 06:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042568; cv=none; d=google.com; s=arc-20160816; b=bKXplrLRFMYEpn/pZV8n1KJ+M8tqZU5jDSeyF63NVIJLYqiMD/jGQMpEqqyrj0ULSZ QtqGPTfP1TURP04ntV/DhK8lp0Fk+rY+5ouJRoou7iTrKbJKui7dWLKFXn3ByLHTFlFS WkJBs7DPYw/3LwwHZ/l2rQyKw/6xj2AeYDLjDJCxgfZX8kCuwR3lKmpl7HboZWqS2CjS z8xmh+asQq8HKOIcikpjaZc7NfPy2hIEBQCU2SJ9iVc6/xJRbAQp5BpcaneYWbOMl4JS uUpvv1lvfopodolQKwbEgwX2QNXQtDfgPzb4XIKYdMRSSoYfpBZIUlkGQKhXHq/VhcNQ fWsQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=n7/LG8QKfAsUZ5xCCuI2vnf7Sj+c5EJvPq+Icl9Ejy0=; b=nm5vRMiQI6VUvVwzikw5mFIRIDJ9hDsGBMtz6xZttBr0fosWtCYvd9+XamP1xyGSju dGwiTexgEXQOOcU1aQA5rjWRSJnojweD6zkfmXVz3HMIDFxaW+ZGblTSeqLLKaYt3W0Y Iv9Efmt5vl5ToEiJSW0FYv1pbge/nxpXoQ2s5SN8OQslRVlCnv3URM4xG63IgjVyqII8 xRQxRopd0mN4mrbjtTvsJ9goOhWzYO5mqOLMllhhtfxdrtk/KgyQsOfN7lBvxmmLnL6N q9CWfPrKU5o1QoDFwS2sBuxC0QT9/iPoe0BZ1z4RWdApxt9fGtZj84/AsxFJS3OoNNpM 6FNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=os0d0dx8; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ef10si11913429ejb.519.2020.07.06.06.36.08; Mon, 06 Jul 2020 06:36:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=os0d0dx8; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729569AbgGFNgH (ORCPT + 5 others); Mon, 6 Jul 2020 09:36:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729284AbgGFNd6 (ORCPT ); Mon, 6 Jul 2020 09:33:58 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 328F5C061794 for ; Mon, 6 Jul 2020 06:33:58 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id f18so32880708wrs.0 for ; Mon, 06 Jul 2020 06:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=n7/LG8QKfAsUZ5xCCuI2vnf7Sj+c5EJvPq+Icl9Ejy0=; b=os0d0dx8lY4PrV0VCx4VZCbRVDM3s7vVVnY/vA+18e1qU3P3/R/bJTVXFEoxZBax3b H1evzJuHhO3Vf9lGtD/CevHBEjo0+SNdxVktW9IoKWmB/6rtywuxMeCHzwvvtwgP0gZv iDOnInpllmtroWuWZ0seJrk6D1D3YOVkjFObAGw+RXxVOq6bTk9TABngguksuBbbeMSb E+fx0zxFxP07AGEaRcKKn+ANTY3M6cY1izjCqRv23X6tLJUCdKZ3+bll9J/WTLpLQIvX SNlAaXxAnaPkVju6B1V7ZJ03U6SKfOX+L1LAEHgGxR58QOar2re6Pj23qdjIRBLb/rre aXJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=n7/LG8QKfAsUZ5xCCuI2vnf7Sj+c5EJvPq+Icl9Ejy0=; b=kGV7R9cOf1UlCpK3I3ld7jBGzcQdgEpO7vtDFOKgkuEGlRzWX4Fmb4W6rW2uJXF7ey drRtM/fTCx9lqins2BjSGA/fGF+R5gnrJ9hPeZd1JuqknDCKa737kfKncHnrJxsaMzaz 2VY0m5mhpDbfi9YiAcfRKtww7/jD1bFumuRHUp54X7cqceK99VjIj0kSdsk394Yq9dAj 0tL6BO9iKrlJX3UkzpMaozYBOjJPfHETPHYbb4HcT1o7ciudNokMvozc+IDMKH5MaEIG cM5+LWRSeOPE+TskaY65LFete2Jj94s5KDdqNbNBWKVYZs+MA6Fr+MZV2dsQPdv6DPrX ZPLQ== X-Gm-Message-State: AOAM531/lOOZtL5p9ILeJJIPhYcUA7++qPkkdhMN2EGAYwvFI4XcGrkL lCQ3jCcbPY+4oH1KOb0smtv0+Q== X-Received: by 2002:a5d:4a42:: with SMTP id v2mr45407084wrs.33.1594042436907; Mon, 06 Jul 2020 06:33:56 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:56 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Felipe Balbi , Al Borchers Subject: [PATCH 10/32] usb: gadget: legacy: nokia: Remove unused static variable 'product_nokia' Date: Mon, 6 Jul 2020 14:33:19 +0100 Message-Id: <20200706133341.476881-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Looks as though it's never been used. Driver was introduced in 2010. Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/legacy/nokia.c:65:19: warning: ‘product_nokia’ defined but not used [-Wunused-const-variable=] 65 | static const char product_nokia[] = NOKIA_LONG_NAME; | ^~~~~~~~~~~~~ Cc: Felipe Balbi Cc: Al Borchers Signed-off-by: Lee Jones --- drivers/usb/gadget/legacy/nokia.c | 1 - 1 file changed, 1 deletion(-) -- 2.25.1 diff --git a/drivers/usb/gadget/legacy/nokia.c b/drivers/usb/gadget/legacy/nokia.c index 978c1a34a9320..2e15f9a32ce9f 100644 --- a/drivers/usb/gadget/legacy/nokia.c +++ b/drivers/usb/gadget/legacy/nokia.c @@ -62,7 +62,6 @@ FSG_MODULE_PARAMETERS(/* no prefix */, fsg_mod_data); #define STRING_DESCRIPTION_IDX USB_GADGET_FIRST_AVAIL_IDX static char manufacturer_nokia[] = "Nokia"; -static const char product_nokia[] = NOKIA_LONG_NAME; static const char description_nokia[] = "PC-Suite Configuration"; static struct usb_string strings_dev[] = {