Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292911
b: refs/heads/master
c: 3384db9
h: refs/heads/master
i:
  292909: 7b935e6
  292907: 1aae709
  292903: ee87ac8
  292895: c10c2a6
v: v3
  • Loading branch information
Moger, Babu authored and James Bottomley committed Feb 19, 2012
1 parent 478c16b commit a217f58
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: 98788a134979fe66c32a1393adf66f7d3faf16ea
refs/heads/master: 3384db9eb8b1e4f94a02c2a0ce3c0efe6142f3ba
6 changes: 3 additions & 3 deletions trunk/include/scsi/scsi_cmnd.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,17 +289,17 @@ static inline struct scsi_data_buffer *scsi_prot(struct scsi_cmnd *cmd)

static inline void set_msg_byte(struct scsi_cmnd *cmd, char status)
{
cmd->result |= status << 8;
cmd->result = (cmd->result & 0xffff00ff) | (status << 8);
}

static inline void set_host_byte(struct scsi_cmnd *cmd, char status)
{
cmd->result |= status << 16;
cmd->result = (cmd->result & 0xff00ffff) | (status << 16);
}

static inline void set_driver_byte(struct scsi_cmnd *cmd, char status)
{
cmd->result |= status << 24;
cmd->result = (cmd->result & 0x00ffffff) | (status << 24);
}

#endif /* _SCSI_SCSI_CMND_H */

0 comments on commit a217f58

Please sign in to comment.