summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/fcbuild.h
diff options
context:
space:
mode:
authorJing Huang <huangj@brocade.com>2009-09-25 12:29:54 -0700
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 12:00:09 -0600
commitf8ceafde6f5bf6b4b7087c7f5e9da1b2a5284a2e (patch)
tree8c726ba2d6511a2a2be1adbd41af1cf09ecffb1d /drivers/scsi/bfa/fcbuild.h
parent8798a694da59486e4a3ff0abeec183202fb34c20 (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/fcbuild.h')
-rw-r--r--drivers/scsi/bfa/fcbuild.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/bfa/fcbuild.h b/drivers/scsi/bfa/fcbuild.h
index 4d248424f7b..8fa7f270ef7 100644
--- a/drivers/scsi/bfa/fcbuild.h
+++ b/drivers/scsi/bfa/fcbuild.h
@@ -32,8 +32,8 @@
* Utility Macros/functions
*/
-#define fcif_sof_set(_ifhdr, _sof) (_ifhdr)->sof = FC_ ## _sof
-#define fcif_eof_set(_ifhdr, _eof) (_ifhdr)->eof = FC_ ## _eof
+#define fcif_sof_set(_ifhdr, _sof) ((_ifhdr)->sof = FC_ ## _sof)
+#define fcif_eof_set(_ifhdr, _eof) ((_ifhdr)->eof = FC_ ## _eof)
#define wwn_is_equal(_wwn1, _wwn2) \
(memcmp(&(_wwn1), &(_wwn2), sizeof(wwn_t)) == 0)
@@ -49,7 +49,7 @@
static inline u32
fc_get_ctresp_pyld_len(u32 resp_len)
{
- return (resp_len - sizeof(struct ct_hdr_s));
+ return resp_len - sizeof(struct ct_hdr_s);
}
/*