sfc: Initialise MCDI buffers to 0 on declaration.
authorJon Cooper <jcooper@solarflare.com>
Wed, 20 May 2015 10:10:41 +0000 (11:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 May 2015 22:43:53 +0000 (18:43 -0400)
commitaa09a3da70a45a5030034b8ec8a8b945da44ebd4
tree2debcc7794be8ac8235692aa0746c69e73816782
parent0d5e0fbba0ced95cc642d89a95120dcc9ec5be57
sfc: Initialise MCDI buffers to 0 on declaration.

In order to avoid MC bugs the flags field needs to be set to 0.
Instead of explicitly clearing out the flags individually, a
better way to do this is to memset the MCDI_BUF to 0.

Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/mcdi.c
drivers/net/ethernet/sfc/mcdi.h
drivers/net/ethernet/sfc/ptp.c