]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 02:28:46 +0000 (19:28 -0700)
commite7228e6a6ae7d67f75208ca8430a8fa296abf49a
treebebe71a080bc3b52fc87f51d27d1e2411224f1eb
parentb206bf2b904dd5a0d2ac210383c46549c06e831e
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>
Orabug: 23718192
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c