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

Commit d3213fbf authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

ethernet: xircom: small clean up in setup_xirc2ps_cs()



The get_options() function takes the whole ARRAY_SIZE().  It doesn't
matter here because we don't use more than 7 elements.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 39c13c20
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1781,7 +1781,7 @@ static int __init setup_xirc2ps_cs(char *str)
	 */
	int ints[10] = { -1 };

	str = get_options(str, 9, ints);
	str = get_options(str, ARRAY_SIZE(ints), ints);

#define MAYBE_SET(X,Y) if (ints[0] >= Y && ints[Y] != -1) { X = ints[Y]; }
	MAYBE_SET(if_port, 3);