Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A013BC74A5B for ; Sat, 18 Mar 2023 13:14:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229746AbjCRNOk (ORCPT ); Sat, 18 Mar 2023 09:14:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229754AbjCRNOh (ORCPT ); Sat, 18 Mar 2023 09:14:37 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B6D512596 for ; Sat, 18 Mar 2023 06:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679145229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=jgoarmppOveCAhzhSS+yukRVNHlYy4ELLTt4seUigM0=; b=LC4DzcQzVQgYtw/VGoaGoMDiwspvJ8I/lK2djyBTwlEMUuw5lK8Rj9Q7KLQv2SGgIhajbv 2Xta6AMta4eYWf3MSR6RMYswh1Y8xDxbWjZn5qQSZbIXZ1qdqgb3QcVEcClEgr+Vq54qvd YVoqQtRIi0k8rKJY55w0PscwtpPvGvY= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-656-9JK1hhEKMjubT1PNTA59kw-1; Sat, 18 Mar 2023 09:13:48 -0400 X-MC-Unique: 9JK1hhEKMjubT1PNTA59kw-1 Received: by mail-qt1-f199.google.com with SMTP id t22-20020ac86a16000000b003bd1c0f74cfso4024427qtr.20 for ; Sat, 18 Mar 2023 06:13:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679145227; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jgoarmppOveCAhzhSS+yukRVNHlYy4ELLTt4seUigM0=; b=u+5iqLbHgL/hRh0nZdPwXgiAriq8l7XOWRjyBmjzTVIkGYGws8hSUI/Z2NXaPkV8Sm NWWYc9M5cTfbc1hCR90pxpZFSOl8H0/hmFZC3Rmh6hGZkA7RB5FrPaJfF/IfFE63Ip1A oaXIvRNu0Cjle1dDtS/syn0CqjE5DrAvR8dbjdC9iH/fAoD8MZLp4n0sLREtBzuUcicQ sqTNxfBX1xkrV+jg1fqx6R+UcBVHw4spFnDR1DS24AOf9fnZ2frFS/+Unlxo4PLQOFPo x/f8h//cDJ80GzTl/9iqmPhrVBUkUBssC+Mu6yESiB8LClNqsk6TRDQZP+jG7xrPNwMj fjmw== X-Gm-Message-State: AO0yUKW4UH20myN6J+SW7MRjX3pT7/QzLD144oH71mk7oADpk6+ChOAC w0txwkiX6aSclNvyHJw9MvhqIlm5ctbWMYPBAfgu78XsxSkPz7lrZlXM9LNAkt9yHAntaEdyI/w Q+rp84IC29Lqk7BV/1kINdpLK X-Received: by 2002:a05:622a:1116:b0:3d3:6285:a63 with SMTP id e22-20020a05622a111600b003d362850a63mr10899539qty.10.1679145227299; Sat, 18 Mar 2023 06:13:47 -0700 (PDT) X-Google-Smtp-Source: AK7set+Sm2ecyLp2qn8isjtzfX8KwHzTIP8qxzV+utPo3ZIhQHxrfPrkzvAXLPrT24ch0L/LOoDWJQ== X-Received: by 2002:a05:622a:1116:b0:3d3:6285:a63 with SMTP id e22-20020a05622a111600b003d362850a63mr10899504qty.10.1679145226993; Sat, 18 Mar 2023 06:13:46 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id bl28-20020a05620a1a9c00b007339c5114a9sm3575523qkb.103.2023.03.18.06.13.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Mar 2023 06:13:46 -0700 (PDT) From: Tom Rix To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, nathan@kernel.org, ndesaulniers@google.com, stern@rowland.harvard.edu, studentxswpy@163.com, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] usb: plusb: remove unused pl_clear_QuickLink_features function Date: Sat, 18 Mar 2023 09:13:42 -0400 Message-Id: <20230318131342.1684103-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org clang with W=1 reports drivers/net/usb/plusb.c:65:1: error: unused function 'pl_clear_QuickLink_features' [-Werror,-Wunused-function] pl_clear_QuickLink_features(struct usbnet *dev, int val) ^ This static function is not used, so remove it. Signed-off-by: Tom Rix --- drivers/net/usb/plusb.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/usb/plusb.c b/drivers/net/usb/plusb.c index 7a2b0094de51..2894114858a2 100644 --- a/drivers/net/usb/plusb.c +++ b/drivers/net/usb/plusb.c @@ -61,12 +61,6 @@ pl_vendor_req(struct usbnet *dev, u8 req, u8 val, u8 index) val, index, NULL, 0); } -static inline int -pl_clear_QuickLink_features(struct usbnet *dev, int val) -{ - return pl_vendor_req(dev, 1, (u8) val, 0); -} - static inline int pl_set_QuickLink_features(struct usbnet *dev, int val) { -- 2.27.0