aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/brocade/bna/bfa_ioc.c
diff options
context:
space:
mode:
authorIvan Vecera <ivecera@redhat.com>2015-06-11 15:52:13 +0200
committerDavid S. Miller <davem@davemloft.net>2015-06-11 15:57:14 -0700
commite2f9ecfcc64c9a7bcb253b57c8bc2e5c87791caa (patch)
treea292e499d9189a0726a6843d0d317310cd20eb4f /drivers/net/ethernet/brocade/bna/bfa_ioc.c
parentMerge branch 'mlx5-next' (diff)
downloadlinux-dev-e2f9ecfcc64c9a7bcb253b57c8bc2e5c87791caa.tar.xz
linux-dev-e2f9ecfcc64c9a7bcb253b57c8bc2e5c87791caa.zip
bna: use ether_addr_copy instead of memcpy
Parameters of all ether_addr_copy instances were checked for proper alignment. Alignment of bnad_bcast_addr is forced to 2 as the implicit alignment is 1. I have also renamed address parameter of bnad_set_mac_address() to addr. The name mac_addr was a little bit confusing as the real parameter is struct sockaddr *. v2: added __aligned directive to bnad_bcast_addr, renamed parameter of bnad_set_mac_address() (thx joe@perches.com) Signed-off-by: Ivan Vecera <ivecera@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/brocade/bna/bfa_ioc.c')
0 files changed, 0 insertions, 0 deletions