Commit e159e4868ec1c289a7c167da681165e74308c92a

Authored by Marek Vasut
Committed by Wolfgang Denk
1 parent 23faf2bc9e

USB: Make struct devrequest setup_packet local

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Remy Bohmer <linux@bohmer.net>
Acked-by: Mike Frysinger <vapier@gentoo.org>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

... ... @@ -73,7 +73,6 @@
73 73 static int dev_index;
74 74 static int running;
75 75 static int asynch_allowed;
76   -static struct devrequest setup_packet;
77 76  
78 77 char usb_started; /* flag for the started/stopped USB status */
79 78  
... ... @@ -180,6 +179,8 @@
180 179 unsigned short value, unsigned short index,
181 180 void *data, unsigned short size, int timeout)
182 181 {
  182 + struct devrequest setup_packet;
  183 +
183 184 if ((timeout == 0) && (!asynch_allowed)) {
184 185 /* request for a asynch control pipe is not allowed */
185 186 return -1;