From: Axel Haslam Date: Fri, 29 Jan 2016 10:34:19 +0000 (+0100) Subject: greybus: loopback_test: Decrease the max number of devices X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3f830562deade2ab6163f07ee6829158cc070ee4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: loopback_test: Decrease the max number of devices 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/tools/loopback_test.c b/drivers/staging/greybus/tools/loopback_test.c index e8d35bd95cc7..6178354fbb74 100644 --- a/drivers/staging/greybus/tools/loopback_test.c +++ b/drivers/staging/greybus/tools/loopback_test.c @@ -17,7 +17,7 @@ #include #include -#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