projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cfa11a
)
USB: legousbtower: drop unnecessary packed attributes
author
Johan Hovold
<johan@kernel.org>
Tue, 5 Nov 2019 08:41:48 +0000
(09:41 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 7 Nov 2019 10:17:53 +0000
(11:17 +0100)
Drop the packed attributes from the two message structs whose fields
are naturally aligned and do not have any padding.
Signed-off-by: Johan Hovold <johan@kernel.org>
Link:
https://lore.kernel.org/r/20191105084152.16322-11-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/legousbtower.c
patch
|
blob
|
history
diff --git
a/drivers/usb/misc/legousbtower.c
b/drivers/usb/misc/legousbtower.c
index
c8ed879
..
a9b0846
100644
(file)
--- a/
drivers/usb/misc/legousbtower.c
+++ b/
drivers/usb/misc/legousbtower.c
@@
-160,7
+160,7
@@
struct tower_reset_reply {
__le16 size; /* little-endian */
__u8 err_code;
__u8 spare;
-}
__attribute__ ((packed))
;
+};
struct tower_get_version_reply {
__le16 size; /* little-endian */
@@
-169,7
+169,7
@@
struct tower_get_version_reply {
__u8 major;
__u8 minor;
__le16 build_no; /* little-endian */
-}
__attribute__ ((packed))
;
+};
/* table of devices that work with this driver */