]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: return early instead of wrap block in if statement
authorEmil Tantilov <emil.s.tantilov@intel.com>
Fri, 20 Jan 2017 22:11:50 +0000 (14:11 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 18 Apr 2017 20:24:04 +0000 (13:24 -0700)
commit255c3ec7c2069cd21e90bff2940bb6670d8f4c9e
tree854efcb7bf6daae3d26d2be8f6fa6a22c41e2ebb
parentb0e3daeba21ff70901b2cb0fb5d79d47c6e6c006
ixgbe: return early instead of wrap block in if statement

Since we exit at the end of the block, we can save a level of
indentation by performing an early return, and make the next several
sections of code more legible, with fewer 80 character line breaks.

Also moved allocating vfinfo at the beginning and the notification
for enabling SRIOV at the end of the function when we know that it
will succeed.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c