diff options
author | Inaky Perez-Gonzalez <inaky@linux.intel.com> | 2009-09-15 18:25:20 -0400 |
---|---|---|
committer | Inaky Perez-Gonzalez <inaky@linux.intel.com> | 2009-10-19 02:56:04 -0400 |
commit | cb5b756f746b77c5323ae413a41e9a40ea33c453 (patch) | |
tree | 9fc7d2d16a0945f644cc742ea0c7bb4db4459df8 | |
parent | 1a5a73c0c5459f991b871855eb36099df65ecb7e (diff) |
wimax/i2400m: don't overwrite error codes when failing to load firmware
Make sure that i2400m_dev_bootstrap() doesn't overwrite the last known
error code with -ENOENT; when a firmware fails to load, we want to
know the cause and not a generic error code.
Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
-rw-r--r-- | drivers/net/wimax/i2400m/fw.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wimax/i2400m/fw.c b/drivers/net/wimax/i2400m/fw.c index 69f9e45eafbf..3d67bcfc7b58 100644 --- a/drivers/net/wimax/i2400m/fw.c +++ b/drivers/net/wimax/i2400m/fw.c | |||
@@ -1573,7 +1573,6 @@ int i2400m_dev_bootstrap(struct i2400m *i2400m, enum i2400m_bri flags) | |||
1573 | fw_name = i2400m->bus_fw_names[itr]; | 1573 | fw_name = i2400m->bus_fw_names[itr]; |
1574 | if (fw_name == NULL) { | 1574 | if (fw_name == NULL) { |
1575 | dev_err(dev, "Could not find a usable firmware image\n"); | 1575 | dev_err(dev, "Could not find a usable firmware image\n"); |
1576 | ret = -ENOENT; | ||
1577 | break; | 1576 | break; |
1578 | } | 1577 | } |
1579 | d_printf(1, dev, "trying firmware %s (%d)\n", fw_name, itr); | 1578 | d_printf(1, dev, "trying firmware %s (%d)\n", fw_name, itr); |