aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoel Kluin <[email protected]>2010-07-20 15:29:08 -0700
committerGreg Kroah-Hartman <[email protected]>2010-08-10 14:35:40 -0700
commit9800eb330df0c1a8ef6f4123705eea691000e374 (patch)
treecfeae541a860869d48012239c81a20f142b46af2
parent10d0ca024257c88b28235fcd58577c3eb01b0460 (diff)
USB: io_ti.c: don't return 0 if writing the download record failed
If the write download record failed we shouldn't return 0. Signed-off-by: Roel Kluin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/usb/serial/io_ti.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c
index 03696b91bd6d..dc47f986df57 100644
--- a/drivers/usb/serial/io_ti.c
+++ b/drivers/usb/serial/io_ti.c
@@ -1298,7 +1298,7 @@ static int download_fw(struct edgeport_serial *serial)
kfree(header);
kfree(rom_desc);
kfree(ti_manuf_desc);
- return status;
+ return -EINVAL;
}
/* verify the write -- must do this in order for