]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: access cfc_del_event only if the opcode is CFC_DEL
authorMichal Schmidt <mschmidt@redhat.com>
Wed, 2 Mar 2016 12:47:08 +0000 (13:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2016 18:31:56 +0000 (13:31 -0500)
commit7e0f432a833a09b35fb623a466042bbf290308a0
tree34756e4ea4c9eea5abb3acea50f3ecfe59e3dec0
parentc8acc041f24cb5f981bf7c4010252fe85a161c3d
bnx2x: access cfc_del_event only if the opcode is CFC_DEL

It's not really a bug, but it was odd that bnx2x_eq_int() read the
message data as if it were a cfc_del_event regardless of the event type.
It's cleaner to access only the appropriate member of union event_data
after checking the event opcode.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c