net/bnxt: refactor chip type selection
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Mon, 2 Dec 2019 04:18:07 +0000 (09:48 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:45:23 +0000 (19:45 +0100)
commit3f6d59b0c88f5cd436af491b9cfc156af180f31e
tree59d933d359fd4327da85d370fda53e6bd2cefd3f
parente1d44d0ad623825b4719e56ace937c368e7944c0
net/bnxt: refactor chip type selection

Use switch-case statement to replace if-else statement.

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c