Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4133099b authored by Jim Cromie's avatar Jim Cromie Committed by David S. Miller
Browse files

enic: replace open-coded ARRAY_SIZE with macro

parent 0db83cd8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -184,7 +184,7 @@ static int (*enic_pp_handlers[])(struct enic *enic, int vf,
};
};


static const int enic_pp_handlers_count =
static const int enic_pp_handlers_count =
			sizeof(enic_pp_handlers)/sizeof(*enic_pp_handlers);
			ARRAY_SIZE(enic_pp_handlers);


static int enic_pp_preassociate(struct enic *enic, int vf,
static int enic_pp_preassociate(struct enic *enic, int vf,
	struct enic_port_profile *prev_pp, int *restore_pp)
	struct enic_port_profile *prev_pp, int *restore_pp)