Skip to content
Snippets Groups Projects
Commit 4ef79099 authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarMarek Vasut <marex@denx.de>
parent bb883f82
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,6 @@ static const unsigned char us_direction[256/8] = { ...@@ -65,7 +65,6 @@ static const unsigned char us_direction[256/8] = {
static ccb usb_ccb __attribute__((aligned(ARCH_DMA_MINALIGN))); static ccb usb_ccb __attribute__((aligned(ARCH_DMA_MINALIGN)));
static __u32 CBWTag; static __u32 CBWTag;
#define USB_MAX_STOR_DEV 7
static int usb_max_devs; /* number of highest available usb device */ static int usb_max_devs; /* number of highest available usb device */
static block_dev_desc_t usb_dev_desc[USB_MAX_STOR_DEV]; static block_dev_desc_t usb_dev_desc[USB_MAX_STOR_DEV];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment