Skip to content

Commit

Permalink
USB: missing error check in emi62
Browse files Browse the repository at this point in the history
the emi62 also lacks an error check.

Signed-off-by: Oliver Neukum <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Oliver Neukum authored and gregkh committed Oct 25, 2007
1 parent cf4cf0b commit 5919a43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/usb/misc/emi62.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ static int emi62_load_firmware (struct usb_device *dev)

/* De-assert reset (let the CPU run) */
err = emi62_set_reset(dev,0);
if (err < 0) {
err("%s - error loading firmware: error = %d", __FUNCTION__, err);
goto wraperr;
}
msleep(250); /* let device settle */

/* 2. We upload the FPGA firmware into the EMI
Expand Down

0 comments on commit 5919a43

Please sign in to comment.