From patchwork Thu May 27 11:01:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 449859 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=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham 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 11238C4707F for ; Thu, 27 May 2021 11:01:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E52CF613D1 for ; Thu, 27 May 2021 11:01:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236311AbhE0LDS (ORCPT ); Thu, 27 May 2021 07:03:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:40870 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236286AbhE0LDR (ORCPT ); Thu, 27 May 2021 07:03:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A87B860241; Thu, 27 May 2021 11:01:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622113304; bh=8Z0CdVOtoIw+TSIWR2LltQNybLKwdxYvoJow19xmeJ0=; h=From:To:Cc:Subject:Date:From; b=SdZ9X0LEP4LwZ6X+j/iWSHkOQXOHqga2GDL6zUDnXQfpEZ1vqUxTChOVYcxqHQLY+ 5porLRD0e7UtTJcIHsIjlOAmzp60Q5al2xhF2js6dBxcVCGxrOSDuzoQB4HDI7nzJT 7RNPzalRaFI2+OgJKs8vCd5VMlxY6Q09mQNeex1jxmrVMVxZzbZKEXEpgYQMNQ9KrS 1BI+//5xlyvkxJz2igWBGXDBsEbE5uW5o/4oEiohEyk2kOz1uBHaV2n7mReR7Rz/Zp OrIbbSl7kidyKZBrQ0j4anr7P8fB3SYH6OM5FEgQPiSXp/3pi6KhW/uW7LZA2FAIBH Si0ieH+SmbzEw== From: Lorenzo Bianconi To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org Subject: [PATCH] mt76: mt7615: remove useless if condition in mt7615_add_interface() Date: Thu, 27 May 2021 13:01:24 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Get rid of unnecessary if condition in mt7615_add_interface routine Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt7615/main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/main.c b/drivers/net/wireless/mediatek/mt76/mt7615/main.c index 2627211aa34e..b809d5327089 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/main.c @@ -241,8 +241,6 @@ static int mt7615_add_interface(struct ieee80211_hw *hw, } ret = mt7615_mcu_add_dev_info(phy, vif, true); - if (ret) - goto out; out: mt7615_mutex_release(dev);