diff options
author | Pavel Roskin <proski@gnu.org> | 2007-06-16 03:39:02 -0400 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2007-06-16 13:42:58 +0200 |
commit | 14452d5c8535fb4428028958343f58c1132099a5 (patch) | |
tree | 7a4e86a80078d17ca505a9b3efb7db3bfc1757ad /at76_usb.h | |
parent | 680c2d475e9d902239a15d85eb8ab6778974624c (diff) |
[PATCH] Simplify at76_set_card_command()
Add "data" field to struct at76_command to avoid dubious code to access
data beyound the end of structure. Don't make handle 0-byte buffer as a
special case. Avoid extra indentation.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Diffstat (limited to 'at76_usb.h')
-rw-r--r-- | at76_usb.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -178,6 +178,7 @@ struct at76_command { u8 cmd; u8 reserved; __le16 size; + u8 data[0]; } __attribute__ ((packed)); /* the length of the Atmel firmware specific rx header before IEEE 802.11 starts */ |