aboutsummaryrefslogtreecommitdiff
path: root/at76_usb.h
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2007-06-16 03:39:02 -0400
committerGuido Guenther <agx@sigxcpu.org>2007-06-16 13:42:58 +0200
commit14452d5c8535fb4428028958343f58c1132099a5 (patch)
tree7a4e86a80078d17ca505a9b3efb7db3bfc1757ad /at76_usb.h
parent680c2d475e9d902239a15d85eb8ab6778974624c (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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/at76_usb.h b/at76_usb.h
index 46a2d7a..0854ad7 100644
--- a/at76_usb.h
+++ b/at76_usb.h
@@ -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 */