summaryrefslogtreecommitdiffstats
path: root/src/plugins/dev_octeon
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2024-04-24 20:50:01 +0200
committerDave Wallace <dwallacelf@gmail.com>2024-05-01 01:17:20 +0000
commit1db11b7d8de5306555e1ce1dd398fb4a9eaf55ba (patch)
treeadf2ac8e659c9466463f85899c3c93aab2308eb3 /src/plugins/dev_octeon
parent0f1fda9cec69ea49c0f169e188392421b5dde011 (diff)
octeon: fix roc_nix_npc_mac_addr_get() return value check
Type: fix Fixes: 01fe7ab Change-Id: I46782c69773085f9e6a8dfff798bb42b1e822c32 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dev_octeon')
-rw-r--r--src/plugins/dev_octeon/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/dev_octeon/init.c b/src/plugins/dev_octeon/init.c
index 03a1d59f7cc..8c5ed95b062 100644
--- a/src/plugins/dev_octeon/init.c
+++ b/src/plugins/dev_octeon/init.c
@@ -114,7 +114,7 @@ oct_init_nix (vlib_main_t *vm, vnet_dev_t *dev)
if ((rrv = roc_nix_dev_init (cd->nix)))
return cnx_return_roc_err (dev, rrv, "roc_nix_dev_init");
- if (roc_nix_npc_mac_addr_get (cd->nix, mac_addr))
+ if ((rrv = roc_nix_npc_mac_addr_get (cd->nix, mac_addr)))
return cnx_return_roc_err (dev, rrv, "roc_nix_npc_mac_addr_get");
vnet_dev_port_add_args_t port_add_args = {