diff options
author | Maggie <xmzhang@brocade.com> | 2010-11-29 21:26:32 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-21 13:24:17 -0500 |
commit | 50444a340028119ce5ba45d60b4cf44e3e6e1b32 (patch) | |
tree | a1030723aaa84cc07f37f8c3d76766f8a9f1f19a /drivers/scsi/bfa/bfa_port.c | |
parent | 52f94b6fd0d1ff9d935c52f8a6360834ed871d92 (diff) |
[SCSI] bfa: fix endianess sparse check warnings
First round of fix for the endianess check warnings from make C=2 CF="-D__CHECK_ENDIAN__".
Signed-off-by: Maggie <xmzhang@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa_port.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/bfa/bfa_port.c b/drivers/scsi/bfa/bfa_port.c index fff96226a383..35277cb9a9e5 100644 --- a/drivers/scsi/bfa/bfa_port.c +++ b/drivers/scsi/bfa/bfa_port.c | |||
@@ -29,7 +29,7 @@ static void | |||
29 | bfa_port_stats_swap(struct bfa_port_s *port, union bfa_port_stats_u *stats) | 29 | bfa_port_stats_swap(struct bfa_port_s *port, union bfa_port_stats_u *stats) |
30 | { | 30 | { |
31 | u32 *dip = (u32 *) stats; | 31 | u32 *dip = (u32 *) stats; |
32 | u32 t0, t1; | 32 | __be32 t0, t1; |
33 | int i; | 33 | int i; |
34 | 34 | ||
35 | for (i = 0; i < sizeof(union bfa_port_stats_u)/sizeof(u32); | 35 | for (i = 0; i < sizeof(union bfa_port_stats_u)/sizeof(u32); |