diff options
author | Jing Huang <huangj@brocade.com> | 2009-09-25 15:29:54 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:00:09 -0500 |
commit | f8ceafde6f5bf6b4b7087c7f5e9da1b2a5284a2e (patch) | |
tree | 8c726ba2d6511a2a2be1adbd41af1cf09ecffb1d /drivers/scsi/bfa/bfa_cb_ioim_macros.h | |
parent | 8798a694da59486e4a3ff0abeec183202fb34c20 (diff) |
[SCSI] bfa: fixed checkpatch errors for bfad files
This patch fixes checkpatch errors/warnings in bfad files.
Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa_cb_ioim_macros.h')
-rw-r--r-- | drivers/scsi/bfa/bfa_cb_ioim_macros.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/bfa/bfa_cb_ioim_macros.h b/drivers/scsi/bfa/bfa_cb_ioim_macros.h index 0050c838c358..961fe439daad 100644 --- a/drivers/scsi/bfa/bfa_cb_ioim_macros.h +++ b/drivers/scsi/bfa/bfa_cb_ioim_macros.h | |||
@@ -51,7 +51,7 @@ bfad_int_to_lun(u32 luno) | |||
51 | lun.bfa_lun = 0; | 51 | lun.bfa_lun = 0; |
52 | lun.scsi_lun[0] = bfa_os_htons(luno); | 52 | lun.scsi_lun[0] = bfa_os_htons(luno); |
53 | 53 | ||
54 | return (lun.bfa_lun); | 54 | return lun.bfa_lun; |
55 | } | 55 | } |
56 | 56 | ||
57 | /** | 57 | /** |
@@ -68,7 +68,7 @@ bfa_cb_ioim_get_cdb(struct bfad_ioim_s *dio) | |||
68 | { | 68 | { |
69 | struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; | 69 | struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; |
70 | 70 | ||
71 | return ((u8 *) cmnd->cmnd); | 71 | return (u8 *) cmnd->cmnd; |
72 | } | 72 | } |
73 | 73 | ||
74 | /** | 74 | /** |
@@ -97,7 +97,7 @@ bfa_cb_ioim_get_size(struct bfad_ioim_s *dio) | |||
97 | { | 97 | { |
98 | struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; | 98 | struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; |
99 | 99 | ||
100 | return (scsi_bufflen(cmnd)); | 100 | return scsi_bufflen(cmnd); |
101 | } | 101 | } |
102 | 102 | ||
103 | /** | 103 | /** |
@@ -129,7 +129,7 @@ bfa_cb_ioim_get_sgaddr(struct bfad_ioim_s *dio, int sgeid) | |||
129 | sge = (struct scatterlist *)scsi_sglist(cmnd) + sgeid; | 129 | sge = (struct scatterlist *)scsi_sglist(cmnd) + sgeid; |
130 | addr = (u64) sg_dma_address(sge); | 130 | addr = (u64) sg_dma_address(sge); |
131 | 131 | ||
132 | return (*(union bfi_addr_u *) &addr); | 132 | return *((union bfi_addr_u *) &addr); |
133 | } | 133 | } |
134 | 134 | ||
135 | static inline u32 | 135 | static inline u32 |
@@ -197,7 +197,7 @@ bfa_cb_ioim_get_cdblen(struct bfad_ioim_s *dio) | |||
197 | { | 197 | { |
198 | struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; | 198 | struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; |
199 | 199 | ||
200 | return (cmnd->cmd_len); | 200 | return cmnd->cmd_len; |
201 | } | 201 | } |
202 | 202 | ||
203 | 203 | ||