Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316859
b: refs/heads/master
c: fc8ef48
h: refs/heads/master
i:
  316857: 788141b
  316855: 01addbc
v: v3
  • Loading branch information
Jeffrin Jose authored and Greg Kroah-Hartman committed Jun 13, 2012
1 parent b8df88e commit bcfb695
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: e463c6dda8f5ee0baa6a5400e45d300287339536
refs/heads/master: fc8ef481df1bd6dac5d9c44b744f8050fcb6a5fe
6 changes: 3 additions & 3 deletions trunk/drivers/usb/storage/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void usb_stor_pad12_command(struct scsi_cmnd *srb, struct us_data *us)
* NOTE: This only works because a scsi_cmnd struct field contains
* a unsigned char cmnd[16], so we know we have storage available
*/
for (; srb->cmd_len<12; srb->cmd_len++)
for (; srb->cmd_len < 12; srb->cmd_len++)
srb->cmnd[srb->cmd_len] = 0;

/* send the command to the transport layer */
Expand All @@ -76,14 +76,14 @@ void usb_stor_pad12_command(struct scsi_cmnd *srb, struct us_data *us)
void usb_stor_ufi_command(struct scsi_cmnd *srb, struct us_data *us)
{
/* fix some commands -- this is a form of mode translation
* UFI devices only accept 12 byte long commands
* UFI devices only accept 12 byte long commands
*
* NOTE: This only works because a scsi_cmnd struct field contains
* a unsigned char cmnd[16], so we know we have storage available
*/

/* Pad the ATAPI command with zeros */
for (; srb->cmd_len<12; srb->cmd_len++)
for (; srb->cmd_len < 12; srb->cmd_len++)
srb->cmnd[srb->cmd_len] = 0;

/* set command length to 12 bytes (this affects the transport layer) */
Expand Down

0 comments on commit bcfb695

Please sign in to comment.