Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp769437pxb; Tue, 5 Apr 2022 22:33:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFVcgwGa4gXbu3MlIkp421CZyg+CkLJwGut1ffTuswdSGvnrmHtzjmwcogFL94MhRhyqUq X-Received: by 2002:a05:6a00:9a7:b0:4fa:ebe8:a4b3 with SMTP id u39-20020a056a0009a700b004faebe8a4b3mr7247883pfg.11.1649223185523; Tue, 05 Apr 2022 22:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649223185; cv=none; d=google.com; s=arc-20160816; b=Fe3O8imTkjCLZN2UOJsW5EIjecPpsp5XgemD7m8bHsOZaIvx3ko6YZpd0uSszCfXlg V1xaCQiL504Qb+Ee9mv/v9a1zpr+64H2xNxXGIkdXzuZACwpaRqyYaHSKp0Vbf+VVqWM D2hO9yp7JN1fch6W+GRwbdOxxAVf5sJxRWABRXn1elXK+n6hozCs+ztfsDPaz834IWqv bdAwsK4LGTlJgmvJnDLvjfJQVpksQvqBoo76Xf+ewuIYIaUjF/jzL5ynFqbm1/Dd3J5Q k9I21S3fIvvONZwcmP48bskl7Ir6F3KGhcGsocX5TtObLnPE8rb/BCi5ZTkEv07aB0XL 6Reg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QId0VNn7HnEiWSsk/8N+sxonTqW+NwBbxTjtrlOkIgQ=; b=Rx7bHNAGhP0LOEwjWy561QA8jCrvUErX1EK6uVHRAjJcevFLqePEF7j9e7kxweRsQ7 b8XW+ZtK5KpOkjusDYtTnOtQO377qEVu3bVO2xoPsRXzIIs+qe+iJybUUUARuvdxyVKy bkkaCzClFu1jNLwhpNvugPKpUWCgzxNtps+WJz2u8bOeGuqVUzNQe1423X2+a8tpZN+f aL8lXACio1fvAxbR3SCCCSpAj1bAc0YNCLikpXVBPBtBWG3dJia1ilPD34z5vWwPLIYd u5UJZ907xXp4ZnkA4TTKtFjrKYImyqTNDVoH7VqJ+LAGM1Tfu1b7SphCdOkNx1S7y8RN TcJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wUmVpzPp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b17-20020a63eb51000000b003816043f0e1si14555031pgk.726.2022.04.05.22.33.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 22:33:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wUmVpzPp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 945653D2C61; Tue, 5 Apr 2022 21:06:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1840322AbiDFBHr (ORCPT + 99 others); Tue, 5 Apr 2022 21:07:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349063AbiDEJtD (ORCPT ); Tue, 5 Apr 2022 05:49:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97C40972EC; Tue, 5 Apr 2022 02:39:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 36BF2615E5; Tue, 5 Apr 2022 09:39:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46794C385A1; Tue, 5 Apr 2022 09:39:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151575; bh=7gTKzdAjIhJ4TyghWQTU70eQQNjzp0fVaBux+pHJOAM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wUmVpzPp+8G/Q0BbaFqrlkOsazKM2H+GF1KEiWU4dilLktOM8efYfYofoISl6dd2u 7VJU/2L/QxEQYrkLeoNLDF3ZCYoWWkpYdsa7NWaIbt9eEbBNcwHycYsKhrMMAzRroq laK3WeJRzcBZTw/zXvUULkBCR4J89gpq4FuMWdCg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , Luca Coelho , Sasha Levin Subject: [PATCH 5.15 466/913] iwlwifi: Fix -EIO error code that is never returned Date: Tue, 5 Apr 2022 09:25:28 +0200 Message-Id: <20220405070353.816391980@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King [ Upstream commit c305c94bdc18e45b5ad1db54da4269f8cbfdff6b ] Currently the error -EIO is being assinged to variable ret when the READY_BIT is not set but the function iwlagn_mac_start returns 0 rather than ret. Fix this by returning ret instead of 0. Addresses-Coverity: ("Unused value") Fixes: 7335613ae27a ("iwlwifi: move all mac80211 related functions to one place") Signed-off-by: Colin Ian King Link: https://lore.kernel.org/r/20210907104658.14706-1-colin.king@canonical.com Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c index 75e7665773c5..90fe4adca492 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c @@ -304,7 +304,7 @@ static int iwlagn_mac_start(struct ieee80211_hw *hw) priv->is_open = 1; IWL_DEBUG_MAC80211(priv, "leave\n"); - return 0; + return ret; } static void iwlagn_mac_stop(struct ieee80211_hw *hw) -- 2.34.1