The virNetDevVPortProfile enum is both explicitly declared and
also typedef-ed. This repetition is redundant. Just use typedef.
To make matters worse, there's another type with the same name,
but because in the code, those few places used 'enum
virNetDevVPortProfile var;' to declare variables compilers didn't
complain.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
virNetDevVPortProfileFormat(const virNetDevVPortProfile *virtPort,
virBuffer *buf)
{
- enum virNetDevVPortProfile type;
+ virNetDevVPortProfileType type;
bool noParameters;
if (!virtPort)
virNetDevVPortProfileMerge(virNetDevVPortProfile *orig,
const virNetDevVPortProfile *mods)
{
- enum virNetDevVPortProfile otype;
+ virNetDevVPortProfileType otype;
if (!orig || !mods)
return 0;
#define LIBVIRT_IFLA_VF_PORT_PROFILE_MAX 40
-typedef enum virNetDevVPortProfile {
+typedef enum {
VIR_NETDEV_VPORT_PROFILE_NONE,
VIR_NETDEV_VPORT_PROFILE_8021QBG,
VIR_NETDEV_VPORT_PROFILE_8021QBH,