From patchwork Tue May 1 08:33:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10373263 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7D0DE6053D for ; Tue, 1 May 2018 08:34:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E25028C00 for ; Tue, 1 May 2018 08:34:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 629C128C15; Tue, 1 May 2018 08:34:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E55CB28C00 for ; Tue, 1 May 2018 08:34:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751826AbeEAIeG (ORCPT ); Tue, 1 May 2018 04:34:06 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35827 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751148AbeEAIeD (ORCPT ); Tue, 1 May 2018 04:34:03 -0400 Received: by mail-wm0-f66.google.com with SMTP id o78so18070750wmg.0 for ; Tue, 01 May 2018 01:34:03 -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=CEKk2LwqAFq6huQIORYijO9F0Y7uxOKVyUD55AYqnIA=; b=OERpI7LML2OjaCUPJFn90stATf4kCJlc8kEGXTuAsLbJjF6YotUwXumuVLtXTpkDlW ZRse+ufl+zQRnacr4OPLasUiD+hH+SgYBAM1K59gHTXLWhtxwjoZbetGbw0sqLChXy45 xqXbv5+gXoatENZNcqCQh7fGA7s36WZ/3e81GAQ4IYXS9D4i6HYbsfIStuGyrzokGMgo ROPInJkLC+kprtx8s1cG2lKRsbD4csVB9S8W5vec+kIRqXtIGQ1dpMsKvgv5XdHJZ+WF tU1aEC+4K0PGwa9Oype5RyyD663P9Lj8HxD8WrLjTWY/IGH38K3T5DjW5GoA2BRDqd0s 6ePw== X-Gm-Message-State: ALQs6tC68+smywhepLkimbL11WeD3lnDWTPoz4QRCJBrqQLVQ7/ru/bW PwcC1B24oYJao0aQYQlvVL6EbmTu65s= X-Google-Smtp-Source: AB8JxZocJEDO5088f1tmz4Au2swqlfqNB41bkWP8r+zSmpVAkM71/+kRDqFOWPBkAcnE1fOfHjyVAA== X-Received: by 10.28.158.144 with SMTP id h138mr9677947wme.33.1525163642840; Tue, 01 May 2018 01:34:02 -0700 (PDT) Received: from localhost.localdomain ([151.66.25.157]) by smtp.gmail.com with ESMTPSA id w6-v6sm10399038wra.16.2018.05.01.01.34.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 May 2018 01:34:02 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org Subject: [PATCH] mt76x2: remove unnecessary break in mt76x2_mac_process_tx_rate() Date: Tue, 1 May 2018 10:33:54 +0200 Message-Id: <20180501083354.1252-1-lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.16.3 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove unnecessary break statement in the default case of bw switch block in mt76x2_mac_process_tx_rate routine Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x2_mac.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2_mac.c b/drivers/net/wireless/mediatek/mt76/mt76x2_mac.c index d18315652583..dab713756004 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2_mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x2_mac.c @@ -410,7 +410,6 @@ mt76x2_mac_process_tx_rate(struct ieee80211_tx_rate *txrate, u16 rate, break; default: return -EINVAL; - break; } if (rate & MT_RXWI_RATE_SGI)