From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F2209A00C4; Sat, 22 Jan 2022 07:50:20 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5EBEC40E28; Sat, 22 Jan 2022 07:50:20 +0100 (CET) Received: from out162-62-57-137.mail.qq.com (out162-62-57-137.mail.qq.com [162.62.57.137]) by mails.dpdk.org (Postfix) with ESMTP id DE65A40040 for ; Sat, 22 Jan 2022 07:50:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1642834216; bh=Eb9eAmtXee3kwY+thiGAh8ofUIibAB+aW0YQSWQTTD4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=zHd544cOm46QKZhU85JE1NCdjJjPMxSKrivCg0SgE8kxpaa1J4Z0cLd+ddc/BXVth U44tyqSyzD07XE/1tR06A0gDgk8KYP8Dz+UP35C0A5e82Fc/S+CD3qS43fF8otbUJU msxbduBz75keePRK8Rz2/VEO1QhmCYSgb/r9+tBY= Received: from localhost.localdomain ([47.100.249.77]) by newxmesmtplogicsvrsza7.qq.com (NewEsmtp) with SMTP id C502549F; Sat, 22 Jan 2022 14:49:16 +0800 X-QQ-mid: xmsmtpt1642834156tq6v6ziq8 Message-ID: X-QQ-XMAILINFO: MJp4BpBFe1fJ3naw0bVXHzgJqASK9NwUlUN9rYRJmcoFf8Mj1F78mrLRUzqzji Hja5CyX6tJqkx2cvHP0sxeRWv3TwZeBtUJrt9iQD++SEy+FapT5hwKVu5ibO9755B4S7jyE0AGl5 kXOMlSfJRDNgXbrgcg7lrfdTBBuxN1Y3lDmMrvRoNCWG+1P7qpzbbpYznCgjcLREcP2e5Stx+/th Cb7s4Q1dKxCuqT+u7XLWcIyH3XTuuCyA5dV33A7SV+5QfYvkOELYnn4jrWncLHyBwkthDRCAaGKB iVkGqeMf5XbjNQEitktjD3aJXEzG78qmjnWAMjJ27wiaUo9HYkp1vtF9pKTu8zmKsEHyCR8fiA31 IHzhD0Mh5K26HRjUt09k+LWSQDhIPyK7xqP5c53gMxG38/2gsbGmlh0QJdxdMeoAgHylcY2+/lK2 r0MdT7rCA7fNWppdUIqs8iTa9xqf6rOzrvEbawq9JS7BXPNSFqj8/b3fqOf8vOAv91fT/yA+Knas gjy0zZ/pkmUR9eVYPHexYbD1i+AWJhBk0Kt2cEbDltIgOzR1sHbvG/WGbY/ZeYVHYuA5APK83zMz GN/9YD+3RJQrE2EeyqyXkrZoVpGtaVGmHoOyfqGRO/8xVJg3dALb+d5ZrYDEUCGf2Z8yfcfjCHMQ 87bfe3GtSjTUbkuKXIZ/QJDuB+vBCzr8hnEKuzdKBkqPvtr9uK481t8MA/FD4rkYkuUdA1mwHMVo pvS1WUOfryuTSFBr+jSdz5qQwF6I45aYfz9TRwzS3KI4yWI5cnVm0NcPvbfzvVIeootV4boKedWV bsZ8LI2ltuJj3TMLGW3lph0R4EQXDMQ1mFP0Sjzn3VQ4uUgQXWDh2SBnnLCFqFHXAlTBvDWg4qj1 c48sf8+LuIfUz4+un9bpE= From: Weiguo Li To: jerinj@marvell.com Cc: tduszynski@marvell.com, dev@dpdk.org Subject: [PATCH v2] common/cnxk: fix incorrect error checking Date: Sat, 22 Jan 2022 14:49:04 +0800 X-OQ-MSGID: <20220122064904.1682914-1-liwg06@foxmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Fixes: 804c108b039a ("common/cnxk: set BPHY IRQ handler") Signed-off-by: Weiguo Li --- drivers/common/cnxk/roc_bphy_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_bphy_irq.c b/drivers/common/cnxk/roc_bphy_irq.c index f4e9b341af..f4954d2a28 100644 --- a/drivers/common/cnxk/roc_bphy_irq.c +++ b/drivers/common/cnxk/roc_bphy_irq.c @@ -259,7 +259,7 @@ roc_bphy_irq_handler_set(struct roc_bphy_irq_chip *chip, int irq_num, CPU_ZERO(&intr_cpuset); CPU_SET(curr_cpu, &intr_cpuset); - retval = pthread_setaffinity_np(pthread_self(), sizeof(intr_cpuset), + rc = pthread_setaffinity_np(pthread_self(), sizeof(intr_cpuset), &intr_cpuset); if (rc < 0) { plt_err("Failed to set affinity mask"); -- 2.25.1