Skip to content

Commit

Permalink
ethernet: xircom: small clean up in setup_xirc2ps_cs()
Browse files Browse the repository at this point in the history
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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Aug 22, 2017
1 parent 39c13c2 commit d3213fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/xircom/xirc2ps_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d3213fb

Please sign in to comment.