Skip to content
Commit 97e6c858 authored by Nathan Chancellor's avatar Nathan Chancellor Committed by David S. Miller
Browse files

net: usb: aqc111: Initialize wol_cfg with memset in aqc111_suspend



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.

Use memset to initialize the object to take compiler instrumentation out
of the equation.

Fixes: e58ba454 ("net: usb: aqc111: Add support for wake on LAN by MAGIC packet")
Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 315c9e83
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment