target: Use {get,put}_unaligned_be*() instead of open coding these functions
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 23 May 2017 23:48:27 +0000 (16:48 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 7 Jul 2017 05:57:59 +0000 (22:57 -0700)
commita85d667e58bddf73be84d1981b41eaac985ed216
treeb997450b0dce7048845834d1756a7e12cb19d069
parentf2b72d6a8eed0eb02e6346886514a27df1efe827
target: Use {get,put}_unaligned_be*() instead of open coding these functions

Introduce the function get_unaligned_be24(). Use {get,put}_unaligned_be*()
where appropriate. This patch does not change any functionality.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Cc: Andy Grover <agrover@redhat.com>
Cc: David Disseldorp <ddiss@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_alua.c
drivers/target/target_core_device.c
drivers/target/target_core_fabric_lib.c
drivers/target/target_core_pr.c
drivers/target/target_core_pscsi.c
drivers/target/target_core_sbc.c
drivers/target/target_core_spc.c
drivers/target/target_core_xcopy.c
include/target/target_core_backend.h