i40e: Fix firmware API version errors
authorCatherine Sullivan <catherine.sullivan@intel.com>
Wed, 9 Jul 2014 07:46:17 +0000 (07:46 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 24 Jul 2014 11:51:23 +0000 (04:51 -0700)
commit7aa67613172734d5d6be99db019e57e453f76862
tree1f97f0f7b6ae9c714bf9d33cffa7412e284333e8
parent77813d0a9f750f8d5075bcbb59d30417e51ab605
i40e: Fix firmware API version errors

Reword the error messages. Also add a major version check because
We only want to warn on nvm_minor > expected_minor if
nvm_major == expected_major. Lastly, change an if to an else if
because the two statements will never evaluate to true at the same time.

Change-ID: I6ddf9986f26b35f6879cbeac4fcef04a8497a383
Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c