Skip to content

Commit d3213fb

Browse files
Dan Carpenterdavem330
authored andcommitted
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: Dan Carpenter <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 39c13c2 commit d3213fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/xircom/xirc2ps_cs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1781,7 +1781,7 @@ static int __init setup_xirc2ps_cs(char *str)
17811781
*/
17821782
int ints[10] = { -1 };
17831783

1784-
str = get_options(str, 9, ints);
1784+
str = get_options(str, ARRAY_SIZE(ints), ints);
17851785

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

0 commit comments

Comments
 (0)