ethernet: xircom: small clean up in setup_xirc2ps_cs()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 21 Aug 2017 09:47:30 +0000 (12:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Aug 2017 17:30:00 +0000 (10:30 -0700)
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>
drivers/net/ethernet/xircom/xirc2ps_cs.c

index f71883264cc061d6cb6d763781066093db196ed0..fd5288ff53b5303271f20137dda57f125d879901 100644 (file)
@@ -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);