tests: Remove _NULLABLE in virNetDevExists mock

The @ifname is listed as an ATTRIBUTE_NONNULL(1) parameter, so
checking for _NULLABLE causes a coverity build failure - remove
that and if it's NULL for the test let's fail miserably.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
John Ferlan 2019-11-03 07:34:04 -05:00
parent a3ed78490c
commit a6ce760f6b

View File

@ -169,7 +169,7 @@ virNetDevSetMAC(const char *ifname G_GNUC_UNUSED,
int int
virNetDevExists(const char *ifname) virNetDevExists(const char *ifname)
{ {
return STREQ_NULLABLE(ifname, "mytap0"); return STREQ(ifname, "mytap0");
} }