From c0ab5d3b8938dadeedaa62f35385011de94621cc Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Sat, 4 Sep 2010 13:22:56 +0000 Subject: [PATCH] Make r2048 more nice. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2049 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_pres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_pres.c b/scst/src/scst_pres.c index 61782be81..d45f20df4 100644 --- a/scst/src/scst_pres.c +++ b/scst/src/scst_pres.c @@ -736,7 +736,7 @@ static int scst_pr_do_load_device_file(struct scst_device *dev, tid = &buf[pos]; pos += tid_size(tid); - key = (__force __be64)get_unaligned((uint64_t *)&buf[pos]); + key = get_unaligned((__be64 *)&buf[pos]); pos += sizeof(key); rel_tgt_id = get_unaligned((uint16_t *)&buf[pos]);