i40e: don't check params until after checking for client instance
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 10 Feb 2017 07:29:13 +0000 (23:29 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 12 Feb 2017 04:39:00 +0000 (20:39 -0800)
commitd7ce6422d6e64502d9f6acff9a4466e2ddb64721
treeee68e4f84066c2abc16e144b72d7845b9091afb1
parent1bf960502e4c94425c3a3a985200834fb59839c6
i40e: don't check params until after checking for client instance

We can avoid the minor bit of work by calling check params after we
check for the client instance, since we're about to return early in
cases where we do not have a client.

Change-ID: I56f8ea2ba48d4f571fa331c9ace50819a022fa1c
Signed-off-by: Jacob Keller <jacob.e.keller@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_client.c