Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4114773pxv; Mon, 26 Jul 2021 22:05:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/qZyzedVK3Qgr8Tdy0oimY6Ua6sjxZTnNo4LFVYc7sIKKFIUGZmCWfwm2DGLzcK104ZNA X-Received: by 2002:a05:6e02:218c:: with SMTP id j12mr15454013ila.32.1627362304341; Mon, 26 Jul 2021 22:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627362304; cv=none; d=google.com; s=arc-20160816; b=C6CA/EvC4iNKiqgAGQQONNEeTQmBHXfgE9qvosiUi1sQyZeSID+Ur0KncvmPUVrfCy WuzB6nxZmw2Uz3Pw6kzfyHEd/KoQZuhyWSDRsVvlPpz4wJ+DYJ4Fgn/Z6dMox06XMHVr T70xd0eHwz3f/nZwDA7z9hINg/qH5qzbTsgEuYDHQwC8zag8NpcMZF7H8M6pemqgAXIe rW+ue6RYjoUUYzuSChiy/b/C7c3ihOBOegVyjwJtdx8FL9AiXXOqaF08jvBYJJz/NLUA FFwzMs1p6GNOXgOp0yNBg7hAtqtHoztilPte7GWuIVoIHWj5dREjHdvmvddRvIH5V9Pu XuQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=bXYv0Ri6boD7QK6PkQybQAq0ArrLDoNqe3HRMyXDhnA=; b=aKuJ+9NrIySN4sYcmsi/564nMQ4gF/Ev0XNfG7n20RrFLVTCdhuAgCJ+InvrzjYoqu ade6NDt7s6RnuaAnIrypQMg022140bYhj1dhM8xXRE74RBa/bcKKjxaOpZeCAJX0GdT7 z8+swYMLCTTXq3tzEyTmtFvDu+TA+egh0b1PgkLtW9xmOnuGXJOFTHoD9b2qFIOI7TUD tmaWdRvcp2JIWqaEyhA/F/67qFAYk0ksjRZ1b3EPBO5/JoFRom6bRytOonl2RfyXoUjj lGF5EsieJc5X9G9qLIz1xBJyaJNT96JxkrztvO83CNK7wCR+DRdsExu4k1HOQd92590i ToSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si2246244ilq.51.2021.07.26.22.04.39; Mon, 26 Jul 2021 22:05:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234905AbhG0FC7 (ORCPT + 99 others); Tue, 27 Jul 2021 01:02:59 -0400 Received: from mx21.baidu.com ([220.181.3.85]:42734 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234867AbhG0FC7 (ORCPT ); Tue, 27 Jul 2021 01:02:59 -0400 Received: from BJHW-Mail-Ex02.internal.baidu.com (unknown [10.127.64.12]) by Forcepoint Email with ESMTPS id B2F71E783FFD8FFD276F; Tue, 27 Jul 2021 13:02:54 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-Mail-Ex02.internal.baidu.com (10.127.64.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 27 Jul 2021 13:02:54 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 27 Jul 2021 13:02:53 +0800 From: Cai Huoqing To: , , , , , , CC: , , , Cai Huoqing Subject: [PATCH] iwlwifi: mvm: Change "ERR_PTR(EINVAL)" to "ERR_PTR(-EINVAL)" Date: Tue, 27 Jul 2021 13:02:47 +0800 Message-ID: <20210727050247.610-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BC-Mail-Ex12.internal.baidu.com (172.31.51.52) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Use "ERR_PTR(-EINVAL)" instead of "ERR_PTR(EINVAL)" Signed-off-by: Cai Huoqing --- drivers/net/wireless/intel/iwlwifi/mvm/sta.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.h b/drivers/net/wireless/intel/iwlwifi/mvm/sta.h index 32b4d1935788..4d9952e3343f 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/sta.h +++ b/drivers/net/wireless/intel/iwlwifi/mvm/sta.h @@ -133,7 +133,7 @@ struct iwl_mvm_vif; * and no TID data as this is also not needed. * One thing to note, is that these stations have an ID in the fw, but not * in mac80211. In order to "reserve" them a sta_id in %fw_id_to_mac_id - * we fill ERR_PTR(EINVAL) in this mapping and all other dereferencing of + * we fill ERR_PTR(-EINVAL) in this mapping and all other dereferencing of * pointers from this mapping need to check that the value is not error * or NULL. * -- 2.25.1