e1000/base: check more NVM read errors
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Fri, 16 Oct 2015 02:50:55 +0000 (10:50 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 27 Oct 2015 13:20:24 +0000 (14:20 +0100)
commita70cf8c3ee6449de11f86bc964483a9000857097
tree54208b50c93c61425a42342091d313b00d076816
parent939d7978bdc7ec3d6b7c508eb0c6ae85c14243bd
e1000/base: check more NVM read errors

Adding code to a case where e1000_nvn_read is called, but there is no
consideration for when the read fails (returns an error code).
Also, this patch adds an error message to a base NVM reading function that
is missing it for consistency.
This patch is not covering all cases of these conditions, it only covers
the code used by the e1000e driver.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/e1000/base/e1000_82571.c
drivers/net/e1000/base/e1000_manage.c
drivers/net/e1000/base/e1000_nvm.c