greybus: loopback_test: Decrease the max number of devices
authorAxel Haslam <ahaslam@baylibre.com>
Fri, 29 Jan 2016 10:34:19 +0000 (11:34 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 2 Feb 2016 01:52:20 +0000 (17:52 -0800)
Its unrealistic to expect 50 loopback devices,
and the mask parameter can hold up to "int" anyways
so decrease to max number of devices to sane value.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/tools/loopback_test.c

index e8d35bd95cc7084807dffcaba52e6b3832b66e7e..6178354fbb74bbe2592427945033cf768730d4bd 100644 (file)
@@ -17,7 +17,7 @@
 #include <unistd.h>
 #include <dirent.h>
 
-#define MAX_NUM_DEVICES 50
+#define MAX_NUM_DEVICES 10
 #define MAX_SYSFS_PATH 0x200
 #define CSV_MAX_LINE   0x1000
 #define SYSFS_MAX_INT  0x20