net: ena: change sizeof() argument to be the type pointer
authorNetanel Belgazal <netanel@amazon.com>
Fri, 23 Jun 2017 08:21:52 +0000 (11:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Jun 2017 18:15:09 +0000 (14:15 -0400)
commit917501109cf4ea4c47991f593111338811369bf5
treebc08c1254ab25ae80fffc4382c3f6e56d5917b6c
parent82ef30f13be0b4fea70a9c6215f7cff40bb3be63
net: ena: change sizeof() argument to be the type pointer

Instead of using:
memset(ptr, 0x0, sizeof(struct ...))
use:
memset(ptr, 0x0, sizeor(*ptr))

Signed-off-by: Netanel Belgazal <netanel@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_com.c