scsi: qla2xxx: use lower_32_bits and upper_32_bits instead of reinventing them
authorChristoph Hellwig <hch@lst.de>
Thu, 18 Oct 2018 13:03:37 +0000 (15:03 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 7 Nov 2018 02:31:29 +0000 (21:31 -0500)
commit3d5ca1e6fdfeb4bc9d0b2eb4e35717198af03d78
tree6d962353bba7f0fd7590ba0b3f726273b5b4d991
parentac4b1657b75251f9c8731403e5b79fa812e0b05c
scsi: qla2xxx: use lower_32_bits and upper_32_bits instead of reinventing them

This also moves the optimization for builds with 32-bit dma_addr_t to
the compiler (where it belongs) instead of opencoding it based on
incorrect assumptions.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_target.c
drivers/scsi/qla2xxx/qla_target.h