diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2010-07-20 22:29:08 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-10 21:35:40 (GMT) |
commit | 9800eb330df0c1a8ef6f4123705eea691000e374 (patch) | |
tree | cfeae541a860869d48012239c81a20f142b46af2 /drivers/usb/serial/io_ti.c | |
parent | 10d0ca024257c88b28235fcd58577c3eb01b0460 (diff) | |
download | linux-9800eb330df0c1a8ef6f4123705eea691000e374.tar.xz |
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/io_ti.c')
-rw-r--r-- | drivers/usb/serial/io_ti.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 03696b9..dc47f98 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 |