From patchwork Fri May 20 08:22:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102311 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp3641796qge; Fri, 20 May 2016 01:23:41 -0700 (PDT) X-Received: by 10.66.228.201 with SMTP id sk9mr2806871pac.5.1463732620925; Fri, 20 May 2016 01:23:40 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p64si26358761pfb.235.2016.05.20.01.23.40; Fri, 20 May 2016 01:23:40 -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 S933121AbcETIXh (ORCPT + 30 others); Fri, 20 May 2016 04:23:37 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:54003 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932808AbcETIXe (ORCPT ); Fri, 20 May 2016 04:23:34 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue003) with ESMTPA (Nemesis) id 0MgJSU-1bFAx43DoU-00Niim; Fri, 20 May 2016 10:23:20 +0200 From: Arnd Bergmann To: Petko Manolov Cc: Arnd Bergmann , "David S. Miller" , "xypron.glpk@gmx.de" , linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: pegasus: remove unused variables and labels Date: Fri, 20 May 2016 10:22:30 +0200 Message-Id: <1463732595-3149399-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:HPvcxlpBFH2y/yJw2/MGwmcQ2o0KYJoXMYbL/pVxbeYCajEeAGl Ma+WpPYIUnV61m9jBJdPsLoW1J3Zo/lR62ZVYSe7adug5foDlMcBUV5k0QgD/6IvBybW1vx yQ82J+DxdoePBiMtD1WL6iz5K4Sr16lZB490Eoxu8fsu1kwAhcyjn2xDsl4S6TeykN7Pqox 2xfJRC+gqf8tkOx3TGegw== X-UI-Out-Filterresults: notjunk:1; V01:K0:/+Br5RQ4wOc=:Nz5EUFb47gZl1TXVrt8onM 3uPsfpCJmGsL00fUmpS2PhpihIMXBhBcOsGonZthj4gRbVKqe81MaJanGGcd2uiCHlVedMT/4 MjDM0JknRSCRA4/BJtJPwblmH+z1oCdNjymoHE/tzF1UWJfm3J9LnK8mn24RpYqWnCmJFtVLR IkTcr1WFojCjKaFQfhF8Ze6TC04y404Z5g2Qh/YLRp/bRNzHvuerfyn2Utg1dkAEcAPQJJiSr SCaWN1Nf/xSZWFWzR92+YqGjOAOWmDpUpbku6aFYArXGaKdB9sc9a6JGdbEjd6daZ2SKFkAv0 ndksoo4OebaVtfc8m6wTV5LkBVXW1wu7Gsq+3+43ALQq6m6BHWAVns8JwO63sOgXaNlJ0LxvD CU273B675YfqTBvaPKEN7wgwT0Ft4qE4vTfnoS4keWLg3jNLSlIa26061qFHkcrbVXob5mtiI BdfUvDe9+vJbAs6D4jumA77h7f/DYse7b8kWNIkUONCrNrJKGFlvpqfXIxkq8+0BUDvq5SHZq xNw35wgS29xouPHQZRb9F8lv1sdvkSz/ZuhbjHMaISr1mLN35YbHEtBzj3vj2RsvmVO6BAaRm dCEn+S/i3e/YGF48MsFdojmu3b8pZO0RK/vnrJCQpGuR5WsJ8WOKqnHI4QpSlygyxQ4Rwu+AH A3k/AM/sY+NHQWkNMCoDsiMZ4XhIwKjoxjabIi1f4pOpKB2mWoiL377FXQvRfb2xdKqY= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The latest dead-code removal was slightly incomplete and left a few things behind that we now get compiler warnings for: drivers/net/usb/pegasus.c: In function 'read_bulk_callback': drivers/net/usb/pegasus.c:475:1: error: label 'goon' defined but not used [-Werror=unused-label] drivers/net/usb/pegasus.c:446:8: error: unused variable 'pkt_len' [-Werror=unused-variable] drivers/net/usb/pegasus.c:445:6: error: unused variable 'buf' [-Werror=unused-variable] drivers/net/usb/pegasus.c:443:17: error: unused variable 'count' [-Werror=unused-variable] This removes them as well. Signed-off-by: Arnd Bergmann Fixes: e00be9e4d0ff ("net: pegasus: remove dead coding") --- drivers/net/usb/pegasus.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.7.0 diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c index 1903d2e2b62d..df6d90ab7ca7 100644 --- a/drivers/net/usb/pegasus.c +++ b/drivers/net/usb/pegasus.c @@ -440,10 +440,8 @@ static void read_bulk_callback(struct urb *urb) { pegasus_t *pegasus = urb->context; struct net_device *net; - int rx_status, count = urb->actual_length; + int rx_status; int status = urb->status; - u8 *buf = urb->transfer_buffer; - __u16 pkt_len; if (!pegasus) return; @@ -472,7 +470,6 @@ static void read_bulk_callback(struct urb *urb) netif_dbg(pegasus, rx_err, net, "RX status %d\n", status); } -goon: usb_fill_bulk_urb(pegasus->rx_urb, pegasus->usb, usb_rcvbulkpipe(pegasus->usb, 1), pegasus->rx_skb->data, PEGASUS_MTU,