i40e: refactor DCB function
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Wed, 23 Dec 2015 20:05:50 +0000 (12:05 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 17 Feb 2016 03:04:08 +0000 (19:04 -0800)
commitdd54a1ada9cea9275c53c89ad869214be6e9731a
treebdf7aaf7a42e8fa65d3acf6c200302391d2dcf34
parent07f169c3e9df898afe951d74734a0e54ac89ee9d
i40e: refactor DCB function

This is a simple refactor suggested by the community
to change a multi-level if statement into a switch.

Change-ID: I831cf3c40426022220aa9b43990022d22dfd50db
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Acked-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_dcb.c