s390/fs3270: use *ptr instead of struct in kzalloc
authorSven Schnelle <svens@linux.ibm.com>
Mon, 5 Dec 2022 09:31:56 +0000 (10:31 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 9 Jan 2023 13:34:05 +0000 (14:34 +0100)
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>
drivers/s390/char/fs3270.c

index 836c09a..32fdb02 100644 (file)
@@ -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);