summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2010-07-21 00:29:08 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-10 23:35:40 +0200
commit9800eb330df0c1a8ef6f4123705eea691000e374 (patch)
treecfeae541a860869d48012239c81a20f142b46af2 /drivers/usb/serial
parentUSB: host: Remove dead CONFIG_ARCH_KARO (diff)
downloadlinux-9800eb330df0c1a8ef6f4123705eea691000e374.tar.xz
linux-9800eb330df0c1a8ef6f4123705eea691000e374.zip
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 <roel.kluin@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial')
-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