summaryrefslogtreecommitdiffstats
path: root/src/plugins/perfmon/intel
diff options
context:
space:
mode:
authorRay Kinsella <mdr@ashroe.eu>2021-11-08 07:22:49 +0000
committerRay Kinsella <mdr@ashroe.eu>2021-11-08 09:33:25 +0000
commit81865bc0e3cfe2cf384640740ccbb18cc9a96163 (patch)
tree0e74c4e180a07772ef4d0308b5da755dafa0ffc4 /src/plugins/perfmon/intel
parentad1bc84e6e4faad747aaf6b8499f0f467c242fc6 (diff)
perfmon: fix iio-bw coverity issues
Fixes an number of coverity issues associated with the iio-bw feature. Type: fix Fixes: e15c999c3 Signed-off-by: Ray Kinsella <mdr@ashroe.eu> Change-Id: I9ad2b336694132545d90a3483200a510226e9198
Diffstat (limited to 'src/plugins/perfmon/intel')
-rw-r--r--src/plugins/perfmon/intel/bundle/iio_bw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/perfmon/intel/bundle/iio_bw.c b/src/plugins/perfmon/intel/bundle/iio_bw.c
index 64ec059c211..9aaca42233f 100644
--- a/src/plugins/perfmon/intel/bundle/iio_bw.c
+++ b/src/plugins/perfmon/intel/bundle/iio_bw.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Cisco and/or its affiliates.
+ * Copyright (c) 2021 Intel and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
@@ -127,8 +127,6 @@ format_stack_socket (u8 *s, va_list *va)
uword *pu = hash_get (h, root_bus.bus);
e = pool_elt_at_index (p, (index_t) pu[0]);
- if (!e)
- return s;
s = format (s, "IIO%u/%u", e->socket_id, e->iio_unit_id);
return s;