s390/appldata: use struct_size() helper
authorGustavo A. R. Silva <gustavoars@kernel.org>
Wed, 17 Jun 2020 21:29:30 +0000 (16:29 -0500)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 29 Jun 2020 14:32:34 +0000 (16:32 +0200)
commit28ccce5f50af2e9484d6b74b22ff9eb54bb775a2
tree77267308fdb5f61f702dba94e4df17b543c62f62
parent6ffb3f6b46d0d02c318946047dc5ce6553495848
s390/appldata: use struct_size() helper

Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes.

This code was detected with the help of Coccinelle and, audited and
fixed manually.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Message-Id: <20200617212930.GA11728@embeddedor>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/appldata/appldata_os.c