Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185412
b: refs/heads/master
c: 5d3034a
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 22c5396 commit cf6b8d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d61ae9112960a2b3ed3360602dfb3bfd357954f
refs/heads/master: 5d3034ab8faea229942e79d867d18722d5375b12
15 changes: 7 additions & 8 deletions trunk/drivers/usb/storage/shuttle_usbat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1628,10 +1628,10 @@ static int usbat_hp8200e_transport(struct scsi_cmnd *srb, struct us_data *us)
return USB_STOR_TRANSPORT_ERROR;
}

if ( (result = usbat_multiple_write(us,
registers, data, 7)) != USB_STOR_TRANSPORT_GOOD) {
result = usbat_multiple_write(us, registers, data, 7);

if (result != USB_STOR_TRANSPORT_GOOD)
return result;
}

/*
* Write the 12-byte command header.
Expand All @@ -1643,12 +1643,11 @@ static int usbat_hp8200e_transport(struct scsi_cmnd *srb, struct us_data *us)
* AT SPEED 4 IS UNRELIABLE!!!
*/

if ((result = usbat_write_block(us,
USBAT_ATA, srb->cmnd, 12,
(srb->cmnd[0]==GPCMD_BLANK ? 75 : 10), 0) !=
USB_STOR_TRANSPORT_GOOD)) {
result = usbat_write_block(us, USBAT_ATA, srb->cmnd, 12,
srb->cmnd[0] == GPCMD_BLANK ? 75 : 10, 0);

if (result != USB_STOR_TRANSPORT_GOOD)
return result;
}

/* If there is response data to be read in then do it here. */

Expand Down

0 comments on commit cf6b8d7

Please sign in to comment.