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)
commitca4f2d5036be809b0f82ce38a7663d237efa3986
tree34756e4ea4c9eea5abb3acea50f3ecfe59e3dec0
parenta524ef77d54d7e12045841f4fcc430c1850f71f2
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