提交 753f5d91 编写于 作者: A Arnd Bergmann 提交者: Marcel Holtmann

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: ded845a7 ("ieee802154: Add CA8210 IEEE 802.15.4 device driver")
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Acked-by: NStefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 766154b7
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册