diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2022-02-03 10:56:07 +0100 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2022-02-06 23:31:29 +0100 |
commit | ba2d394c60ad4b5d70cd449b9e6f6380c2e36a50 (patch) | |
tree | 5c21137ec0920f86312efb6b111c0f04583e11a8 /arch/s390/kernel/lgr.c | |
parent | 9de209c7d584d6e06ad92f120d83d4f27c200497 (diff) | |
download | linux-stable-ba2d394c60ad4b5d70cd449b9e6f6380c2e36a50.tar.gz linux-stable-ba2d394c60ad4b5d70cd449b9e6f6380c2e36a50.tar.bz2 linux-stable-ba2d394c60ad4b5d70cd449b9e6f6380c2e36a50.zip |
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>
Diffstat (limited to 'arch/s390/kernel/lgr.c')
-rw-r--r-- | arch/s390/kernel/lgr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/s390/kernel/lgr.c b/arch/s390/kernel/lgr.c index 3b895971c3d0..6652e54cf3db 100644 --- a/arch/s390/kernel/lgr.c +++ b/arch/s390/kernel/lgr.c @@ -88,8 +88,7 @@ static void lgr_stsi_2_2_2(struct lgr_info *lgr_info) if (stsi(si, 2, 2, 2)) return; cpascii(lgr_info->name, si->name, sizeof(si->name)); - memcpy(&lgr_info->lpar_number, &si->lpar_number, - sizeof(lgr_info->lpar_number)); + lgr_info->lpar_number = si->lpar_number; } /* |