Skip to content

Commit

Permalink
USB: serial: io_ti.c: don't return 0 if writing the download record f…
Browse files Browse the repository at this point in the history
…ailed

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]>
  • Loading branch information
RoelKluin authored and gregkh committed Aug 24, 2010
1 parent 461c317 commit fd6e5bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/serial/io_ti.c
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ static int download_fw(struct edgeport_serial *serial)
kfree(header);
kfree(rom_desc);
kfree(ti_manuf_desc);
return status;
return -EINVAL;
}

/* Update I2C with type 0xf2 record with correct
Expand Down

0 comments on commit fd6e5bb

Please sign in to comment.