s390/uaccess: get rid of not needed local variable
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 24 Mar 2023 14:00:23 +0000 (15:00 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 4 Apr 2023 16:27:24 +0000 (18:27 +0200)
commitc3bd834328a6b642cfebc8a1a6cd5e5447cbbd12
tree31a64c6a16637c89dda77d75f15410bb320a85ef
parent7f65d18329a2546ce6f64ac6bf141c38b15c2ab3
s390/uaccess: get rid of not needed local variable

Get rid of the not needed val local variable and pass the constant
value directly as operand value. In addition this turns the val
operand into an input operand, since it is not changed within the
inline assemblies.

This in turn requires also to add the earlyclobber contraint modifier
to all output operands, since the (former) val operand is used after
all output variants have been modified.

The usercopy kunit tests still pass after this change.

Reviewed-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/lib/uaccess.c