net/bnxt: refactor async event handling
authorSomnath Kotur <somnath.kotur@broadcom.com>
Mon, 12 Jul 2021 08:04:34 +0000 (13:34 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Wed, 14 Jul 2021 18:29:05 +0000 (20:29 +0200)
commit1125b16bf691f6643d781840aed7cfd2c6b092ca
treee4d884773346fb9a3db14b73afd3a446c24ba853
parent8fd709a10b25d6d3fe293b3f8343c179d85631df
net/bnxt: refactor async event handling

Store the async event completion data1 and data2 in separate variables
at the start of the function before the switch case for the different
events so they can be used by any of the event handlers.

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_cpr.c