diff options
author | Sven Schnelle <svens@linux.ibm.com> | 2022-12-05 12:31:56 +0300 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2023-01-09 16:34:05 +0300 |
commit | 84a8b601eac5316dcd01fb9cdd9b28261225c663 (patch) | |
tree | 57f7089642cacc57c0cd0e79e3e859b09565c668 /drivers/s390/char | |
parent | aa08b6a46b6060cab0de44f1b1db58fcc867b60f (diff) | |
download | linux-84a8b601eac5316dcd01fb9cdd9b28261225c663.tar.xz |
s390/fs3270: use *ptr instead of struct in kzalloc
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'drivers/s390/char')
-rw-r--r-- | drivers/s390/char/fs3270.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/fs3270.c b/drivers/s390/char/fs3270.c index 836c09a47860..32fdb0241cf3 100644 --- a/drivers/s390/char/fs3270.c +++ b/drivers/s390/char/fs3270.c @@ -379,7 +379,7 @@ fs3270_alloc_view(void) { struct fs3270 *fp; - fp = kzalloc(sizeof(struct fs3270), GFP_KERNEL); + fp = kzalloc(sizeof(*fp), GFP_KERNEL); if (!fp) return ERR_PTR(-ENOMEM); fp->init = raw3270_request_alloc(0); |