From: Simon Glass Date: Thu, 7 Jan 2016 22:16:08 +0000 (-0700) Subject: usb: Define USB_MAX_STOR_DEV in only one place X-Git-Tag: v2025.01-rc5-pxa1908~10643^2~37 X-Git-Url: http://git.dujemihanovic.xyz/img/static/gitweb.css?a=commitdiff_plain;h=4ef7909970bbed5e911f3d5e3d27ecedb80cec0e;p=u-boot.git usb: Define USB_MAX_STOR_DEV in only one place We can define this in the header file and use it in usb_storage.c. There is no need to define it twice. Remove the #define from usb_storage.c. Signed-off-by: Simon Glass Reviewed-by: Marek Vasut --- diff --git a/common/usb_storage.c b/common/usb_storage.c index 4fdb55f9fa..8737cf7cea 100644 --- a/common/usb_storage.c +++ b/common/usb_storage.c @@ -65,7 +65,6 @@ static const unsigned char us_direction[256/8] = { static ccb usb_ccb __attribute__((aligned(ARCH_DMA_MINALIGN))); static __u32 CBWTag; -#define USB_MAX_STOR_DEV 7 static int usb_max_devs; /* number of highest available usb device */ static block_dev_desc_t usb_dev_desc[USB_MAX_STOR_DEV];