Re: [PATCH] net: usb: aqc111: Properly initialize wol_cfg in aqc111_suspend

From: David Miller
Date: Thu Nov 29 2018 - 00:52:48 EST


From: Nathan Chancellor <natechancellor@xxxxxxxxx>
Date: Wed, 28 Nov 2018 22:18:09 -0700

> Clang warns:
>
> drivers/net/usb/aqc111.c:1326:37: warning: suggest braces around
> initialization of subobject [-Wmissing-braces]
> struct aqc111_wol_cfg wol_cfg = { 0 };
> ^
> {}
> 1 warning generated.
>
> Add another set of braces to initialize the char subobjects as well.
>
> Fixes: e58ba4544c77 ("net: usb: aqc111: Add support for wake on LAN by MAGIC packet")
> Signed-off-by: Nathan Chancellor <natechancellor@xxxxxxxxx>

This will in turn make some versions of gcc warn.

Please just memset() this object, thanks.