wimax/i2400m: don't overwrite error codes when failing to load firmware
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Tue, 15 Sep 2009 22:25:20 +0000 (15:25 -0700)
committerInaky Perez-Gonzalez <inaky@linux.intel.com>
Mon, 19 Oct 2009 06:56:04 +0000 (15:56 +0900)
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>
drivers/net/wimax/i2400m/fw.c

index 69f9e45eafbf6355bb0b49ab5b19d3d3cb617322..3d67bcfc7b58d768ae4da0fbcb9e6109580d8a56 100644 (file)
@@ -1573,7 +1573,6 @@ int i2400m_dev_bootstrap(struct i2400m *i2400m, enum i2400m_bri flags)
                fw_name = i2400m->bus_fw_names[itr];
                if (fw_name == NULL) {
                        dev_err(dev, "Could not find a usable firmware image\n");
-                       ret = -ENOENT;
                        break;
                }
                d_printf(1, dev, "trying firmware %s (%d)\n", fw_name, itr);