[U-Boot] [PATCH] usb: Define USB_MAX_STOR_DEV in only one place

Simon Glass sjg at chromium.org
Thu Jan 7 23:16:08 CET 2016


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 <sjg at chromium.org>
---

 common/usb_storage.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/common/usb_storage.c b/common/usb_storage.c
index e61a8c8..07fdf18 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];
-- 
2.6.0.rc2.230.g3dd15c0



More information about the U-Boot mailing list