drivers/net/: all drivers/net/ cleanup with ARRAY_SIZE
[deliverable/linux.git] / drivers / net / irda / actisys-sir.c
index 9715ab5572e998c11a96121a6fdde28cdce5399e..ccf6ec548a6464a3e51c1945796a0f7842d5977d 100644 (file)
@@ -67,7 +67,7 @@ static int actisys_reset(struct sir_dev *);
 /* Note : the 220L doesn't support 38400, but we will fix that below */
 static unsigned baud_rates[] = { 9600, 19200, 57600, 115200, 38400 };
 
-#define MAX_SPEEDS (sizeof(baud_rates)/sizeof(baud_rates[0]))
+#define MAX_SPEEDS ARRAY_SIZE(baud_rates)
 
 static struct dongle_driver act220l = {
        .owner          = THIS_MODULE,
This page took 0.025193 seconds and 5 git commands to generate.