git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6a2702
)
net/hns3: mark unchecked return of snprintf
author
Huisong Li
<lihuisong@huawei.com>
Sat, 6 Nov 2021 01:43:05 +0000
(09:43 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Mon, 8 Nov 2021 14:59:14 +0000
(15:59 +0100)
Fixing the return value of the function to clear static warning.
Fixes:
1181500b2fc5
("net/hns3: adjust MAC address logging")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_common.c
patch
|
blob
|
history
diff --git
a/drivers/net/hns3/hns3_common.c
b/drivers/net/hns3/hns3_common.c
index
c306e0b
..
9a47fbf
100644
(file)
--- a/
drivers/net/hns3/hns3_common.c
+++ b/
drivers/net/hns3/hns3_common.c
@@
-154,10
+154,10
@@
hns3_clock_gettime_ms(void)
void hns3_ether_format_addr(char *buf, uint16_t size,
const struct rte_ether_addr *ether_addr)
{
- snprintf(buf, size, "%02X:**:**:**:%02X:%02X",
- ether_addr->addr_bytes[0],
- ether_addr->addr_bytes[4],
- ether_addr->addr_bytes[5]);
+
(void)
snprintf(buf, size, "%02X:**:**:**:%02X:%02X",
+
ether_addr->addr_bytes[0],
+
ether_addr->addr_bytes[4],
+
ether_addr->addr_bytes[5]);
}
static int