mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
ieee802154: fix gcc-4.9 warnings
All older compiler versions up to gcc-4.9 produce these
harmless warnings:
drivers/net/ieee802154/ca8210.c: In function 'ca8210_skb_tx':
drivers/net/ieee802154/ca8210.c:1947:9: warning: missing braces around initializer [-Wmissing-braces]
This changes the syntax to something that works on all versions
without warnings.
Fixes: ded845a781
("ieee802154: Add CA8210 IEEE 802.15.4 device driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
766154b7d4
commit
753f5d91d3
@ -1944,7 +1944,7 @@ static int ca8210_skb_tx(
|
||||
)
|
||||
{
|
||||
int status;
|
||||
struct ieee802154_hdr header = { 0 };
|
||||
struct ieee802154_hdr header = { };
|
||||
struct secspec secspec;
|
||||
unsigned int mac_len;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user