diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-08-21 12:47:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-22 10:30:00 -0700 |
commit | d3213fbf695490acbffc7b1fff793c7e26989296 (patch) | |
tree | 924862d016f0021e1fd7b1d13daf9a0a2b0986fb /drivers/net/ethernet/xircom | |
parent | 39c13c204bb1150d401e27d41a9d8b332be47c49 (diff) | |
download | linux-d3213fbf695490acbffc7b1fff793c7e26989296.tar.bz2 |
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 <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xircom')
-rw-r--r-- | drivers/net/ethernet/xircom/xirc2ps_cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/xircom/xirc2ps_cs.c b/drivers/net/ethernet/xircom/xirc2ps_cs.c index f71883264cc0..fd5288ff53b5 100644 --- a/drivers/net/ethernet/xircom/xirc2ps_cs.c +++ b/drivers/net/ethernet/xircom/xirc2ps_cs.c @@ -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); |