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-06 11:27:12 -05:00
parent a3ed78490c
commit a6ce760f6b
+1 -1
View File
@@ -169,7 +169,7 @@ virNetDevSetMAC(const char *ifname G_GNUC_UNUSED,
int
virNetDevExists(const char *ifname)
{
return STREQ_NULLABLE(ifname, "mytap0");
return STREQ(ifname, "mytap0");
}