Skip to content

Commit

Permalink
common/cnxk: fix error checking
Browse files Browse the repository at this point in the history
[ upstream commit 5c38229 ]

Fixes: 804c108 ("common/cnxk: set BPHY IRQ handler")

Signed-off-by: Weiguo Li <liwg06@foxmail.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
  • Loading branch information
liwg06 authored and kevintraynor committed Feb 21, 2022
1 parent 2253ed9 commit 3fd3c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/common/cnxk/roc_bphy_irq.c
Expand Up @@ -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");
Expand Down

0 comments on commit 3fd3c3b

Please sign in to comment.