]> git.baikalelectronics.ru Git - kernel.git/commit
s390/lgr: use simple assignment instead of memcpy
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 3 Feb 2022 09:56:07 +0000 (10:56 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Sun, 6 Feb 2022 22:31:29 +0000 (23:31 +0100)
commit87dac9f9799fa2268f1ba2d41dd77bed3a57b7a5
tree5c21137ec0920f86312efb6b111c0f04583e11a8
parent1e40fc2a1c38c88e68858c2e9194cfc3e397814b
s390/lgr: use simple assignment instead of memcpy

It is quite pointless to use memcpy to copy two bytes, besides that
this construct will also partially remove type and size sanity checks.

Therefore simply use an assignment.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/lgr.c