Blame SOURCES/0003-rtw89-Remove-redundant-check-of-ret-after-call-to-rt.patch

56e3f4
From 16c75423c29792209bfc638eaf4bd1f3faf89a44 Mon Sep 17 00:00:00 2001
56e3f4
From: =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= <ihuguet@redhat.com>
56e3f4
Date: Fri, 21 Jan 2022 08:49:01 +0100
56e3f4
Subject: [PATCH 03/36] rtw89: Remove redundant check of ret after call to
56e3f4
 rtw89_mac_enable_bb_rf
56e3f4
MIME-Version: 1.0
56e3f4
Content-Type: text/plain; charset=UTF-8
56e3f4
Content-Transfer-Encoding: 8bit
56e3f4
56e3f4
Bugzilla: http://bugzilla.redhat.com/2033291
56e3f4
56e3f4
commit f7e7e440550b0b176df3d2ea3e76106bc89915d9
56e3f4
Author: Colin Ian King <colin.king@canonical.com>
56e3f4
Date:   Fri Oct 15 16:21:13 2021 +0100
56e3f4
56e3f4
    rtw89: Remove redundant check of ret after call to rtw89_mac_enable_bb_rf
56e3f4
56e3f4
    The function rtw89_mac_enable_bb_rf is a void return type, so there is
56e3f4
    no return error code to ret, so the following check for an error in ret
56e3f4
    is redundant dead code and can be removed.
56e3f4
56e3f4
    Addresses-Coverity: ("Logically dead code")
56e3f4
    Fixes: e3ec7017f6a2 ("rtw89: add Realtek 802.11ax driver")
56e3f4
    Signed-off-by: Colin Ian King <colin.king@canonical.com>
56e3f4
    Acked-by: Ping-Ke Shih <pkshih@realtek.com>
56e3f4
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
56e3f4
    Link: https://lore.kernel.org/r/20211015152113.33179-1-colin.king@canonical.com
56e3f4
56e3f4
Signed-off-by: Íñigo Huguet <ihuguet@redhat.com>
56e3f4
---
56e3f4
 drivers/net/wireless/realtek/rtw89/mac.c | 2 --
56e3f4
 1 file changed, 2 deletions(-)
56e3f4
56e3f4
diff --git a/drivers/net/wireless/realtek/rtw89/mac.c b/drivers/net/wireless/realtek/rtw89/mac.c
56e3f4
index 0171a5a7b1de..69384c43c046 100644
56e3f4
--- a/drivers/net/wireless/realtek/rtw89/mac.c
56e3f4
+++ b/drivers/net/wireless/realtek/rtw89/mac.c
56e3f4
@@ -2656,8 +2656,6 @@ int rtw89_mac_init(struct rtw89_dev *rtwdev)
56e3f4
 		goto fail;
56e3f4
 
56e3f4
 	rtw89_mac_enable_bb_rf(rtwdev);
56e3f4
-	if (ret)
56e3f4
-		goto fail;
56e3f4
 
56e3f4
 	ret = rtw89_mac_sys_init(rtwdev);
56e3f4
 	if (ret)
56e3f4
-- 
56e3f4
2.13.6
56e3f4