diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2012-02-25 12:28:12 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-28 14:11:22 -0500 |
commit | 03892d5fefbe7d4df68466bd4cfda86fac84ebd8 (patch) | |
tree | 8066acecc2e0e99295d40f2867f695c53d484c3d /include/linux/usb | |
parent | 775dafdcd330d021cee984459fbdacfc01d29f69 (diff) |
usb/storage: remove Filler member from struct bulk_cs_wrap
As Alan Stern pointed out this member has nothing to do with the Command
Status Wrapper (CSW) as specified by the Universal Serial Bus Mass
Storage Class Bulk-Only Transport rev 1.0. It defines the structure
without the additional 18 filler bytes and defines the total size of the
struct to exactly 13 bytes. Larger responses should be dropped. All
in-tree users use a defines instead of sizeof() of this struct as far I
can tell.
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/storage.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/usb/storage.h b/include/linux/usb/storage.h index 4de58b15fad6..cb33fff2ba0b 100644 --- a/include/linux/usb/storage.h +++ b/include/linux/usb/storage.h | |||
@@ -71,7 +71,6 @@ struct bulk_cs_wrap { | |||
71 | __u32 Tag; /* same as original command */ | 71 | __u32 Tag; /* same as original command */ |
72 | __le32 Residue; /* amount not transferred */ | 72 | __le32 Residue; /* amount not transferred */ |
73 | __u8 Status; /* see below */ | 73 | __u8 Status; /* see below */ |
74 | __u8 Filler[18]; | ||
75 | }; | 74 | }; |
76 | 75 | ||
77 | #define US_BULK_CS_WRAP_LEN 13 | 76 | #define US_BULK_CS_WRAP_LEN 13 |