]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
s390/zcrypt: get rid of little/big endian handling
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 9 May 2017 10:19:16 +0000 (12:19 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 12 Jun 2017 14:25:57 +0000 (16:25 +0200)
commit8ff3458865ef43de80c10a32a4797bb941840aee
tree6366c2322c69292c5c7fa7e134fe886aef20e846
parent35bb092a91b4c43a2079d3d5458b74a059455b6c
s390/zcrypt: get rid of little/big endian handling

The zcrypt code contains a couple of functions which receive a
"big_endian" argument. All callers naturally pass "1" for big endian,
since s390 is big endian. Therefore get rid of this argument and also
get rid of the cpu_to_le()/cpu_to_be() calls.

This way we get rid of a couple of sparse warnings:

drivers/s390/crypto/zcrypt_cca_key.h:255:34:
 warning: incorrect type in assignment (different base types)
    expected unsigned short [unsigned] ulen
    got restricted __be16 [usertype] <noident>

Cc: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/zcrypt_cca_key.h
drivers/s390/crypto/zcrypt_msgtype6.c