]> 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)
commit1f4007db9342a42b7941d8fb36e06cad3aad7cf9
tree5c21137ec0920f86312efb6b111c0f04583e11a8
parentff275b9c51f78a90b1c6fc8b404e31c500ecd7f5
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