pif: Remove unused pif_name() function

pif_name() has no current callers, although we expect some as we expand the
flow table support.  I'm not sure why this didn't get caught by one of
our static checkers earlier, but it's now causing cppcheck failures for me.

Add a cppcheck suppression.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
David Gibson 2024-01-15 17:39:44 +11:00 committed by Stefano Brivio
parent a179ca6707
commit 00c6eb6b68

1
pif.h
View file

@ -38,6 +38,7 @@ static inline const char *pif_type(enum pif_type pt)
return "?"; return "?";
} }
/* cppcheck-suppress unusedFunction */
static inline const char *pif_name(uint8_t pif) static inline const char *pif_name(uint8_t pif)
{ {
return pif_type(pif); return pif_type(pif);