From patchwork Mon Oct 26 19:28:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 287435 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF73FC2D0A3 for ; Mon, 26 Oct 2020 19:28:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9428620878 for ; Mon, 26 Oct 2020 19:28:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="FSzSt8ki" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1793002AbgJZT2J (ORCPT ); Mon, 26 Oct 2020 15:28:09 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:37303 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1784681AbgJZT2J (ORCPT ); Mon, 26 Oct 2020 15:28:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603740487; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=FPGZin7hGiL0S83YGvD7bl4y6jo+RRVwdp7xyLYn+vo=; b=FSzSt8kio8kv1/lQqEMh3YbDfiRb7FiVaQKfDGkN3Mzg2baKvy/AI6q9OQ8g6DTLXwljzz kTprz1mSFHgkW8cWDrTU1pKt2v02jAK6OZ7AZZAmfo+coo/T43RZ2HEU68+uSkl+XsF4pg 69HP+ps7r0+MQjrW+CDJonjkB9vSGSQ= Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-101-zAbZFBdbO-eoYcg1WZgj6g-1; Mon, 26 Oct 2020 15:28:05 -0400 X-MC-Unique: zAbZFBdbO-eoYcg1WZgj6g-1 Received: by mail-oi1-f200.google.com with SMTP id 204so6089090oid.21 for ; Mon, 26 Oct 2020 12:28:05 -0700 (PDT) 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; bh=FPGZin7hGiL0S83YGvD7bl4y6jo+RRVwdp7xyLYn+vo=; b=sRf4D8vY9IBwo7BMFGjAFZK+KZYZXXEIKT/XlJat7FPs38GbrHpXx/UFuVGPoad7nt ViRkISFiS4gEm/0TZwremmJEs2s18eFJ4ccpqqzjjsozitZU9aszO9mTLR4dPy08gOA6 u0gdBzZJtmeM/BzyRtYXO7CwyWFif5yhugvUAxT2Gf+X4A0F5eLZhwokGlRmxyCQWYCT HpDq8PcuMSYPiYEoloY0uuSXnRYFzM+Jx7NQ/qobea+cAbQ4BRI+8vPBYd0LZBTQq73V WLNAzlpKh3vKRDC4eD+S0oRLjQ+HRYY0Jb9zSWuXqqNvlYHuy8oqoBNYYJPd8iM7mL/k hy2A== X-Gm-Message-State: AOAM532eWoexd2NnsxjA+JSchuzqUAKXNA/fTu5LR73gDslYrVwXuc6T 0dLLp3jaJUqGYFy7Bsn2MTqKMqPPW37oT6aQsvKkfhyxETOWREVwEQUMxwv+TzB2Rl3AQXK02Jz +l5gV7XMYa6trKtEpimA3 X-Received: by 2002:a05:6830:1e34:: with SMTP id t20mr15194092otr.287.1603740485038; Mon, 26 Oct 2020 12:28:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+uWy1gyFBJcF88tBJdS44nzHs70xmAwlCO4fBguLAt1yBtaehqdBxW0o9IPEE/f7UbbnymQ== X-Received: by 2002:a05:6830:1e34:: with SMTP id t20mr15194075otr.287.1603740484841; Mon, 26 Oct 2020 12:28:04 -0700 (PDT) Received: from trix.remote.csb (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id h7sm3340103oop.40.2020.10.26.12.28.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 12:28:04 -0700 (PDT) From: trix@redhat.com To: gregkh@linuxfoundation.org, lee.jones@linaro.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH v2] usb: misc: iowarrior: remove unneeded break Date: Mon, 26 Oct 2020 12:28:00 -0700 Message-Id: <20201026192800.1431547-1-trix@redhat.com> X-Mailer: git-send-email 2.18.1 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Tom Rix A break is not needed if it is preceded by a goto. Signed-off-by: Tom Rix --- v2: split from original larger patch --- drivers/usb/misc/iowarrior.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c index 70ec29681526..efbd317f2f25 100644 --- a/drivers/usb/misc/iowarrior.c +++ b/drivers/usb/misc/iowarrior.c @@ -384,7 +384,6 @@ static ssize_t iowarrior_write(struct file *file, retval = usb_set_report(dev->interface, 2, 0, buf, count); kfree(buf); goto exit; - break; case USB_DEVICE_ID_CODEMERCS_IOW56: case USB_DEVICE_ID_CODEMERCS_IOW56AM: case USB_DEVICE_ID_CODEMERCS_IOW28: @@ -454,14 +453,12 @@ static ssize_t iowarrior_write(struct file *file, retval = count; usb_free_urb(int_out_urb); goto exit; - break; default: /* what do we have here ? An unsupported Product-ID ? */ dev_err(&dev->interface->dev, "%s - not supported for product=0x%x\n", __func__, dev->product_id); retval = -EFAULT; goto exit; - break; } error: usb_free_coherent(dev->udev, dev->report_size, buf,