]> www.infradead.org Git - users/jedix/linux-maple.git/commit
megaraid_sas : move endianness conversion into caller of megasas_get_seq_num
authorChristoph Hellwig <hch@lst.de>
Thu, 23 Apr 2015 11:03:24 +0000 (16:33 +0530)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 29 Jun 2015 15:32:50 +0000 (08:32 -0700)
commitca8610acac64a08c7ad9b7e369c9b5a571ab657d
treedf325fd51e506fe024d681071a7aa85c7f2cd78c
parenta45cc867f0e2e9a5b383e53cbcc3be9a11dc7032
megaraid_sas : move endianness conversion into caller of megasas_get_seq_num

Converting structure fields in place is always a bad idea, and in this case
by moving it into the only caller we also only have to do a single byte
swap as most fields of this structure are never used.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sumit Saxena <sumit.saxena@avagotech.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/megaraid/megaraid_sas_base.c