Commit 84a8b601 authored by Sven Schnelle's avatar Sven Schnelle Committed by Heiko Carstens

s390/fs3270: use *ptr instead of struct in kzalloc

Signed-off-by: default avatarSven Schnelle <svens@linux.ibm.com>
Acked-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent aa08b6a4
...@@ -379,7 +379,7 @@ fs3270_alloc_view(void) ...@@ -379,7 +379,7 @@ fs3270_alloc_view(void)
{ {
struct fs3270 *fp; struct fs3270 *fp;
fp = kzalloc(sizeof(struct fs3270), GFP_KERNEL); fp = kzalloc(sizeof(*fp), GFP_KERNEL);
if (!fp) if (!fp)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
fp->init = raw3270_request_alloc(0); fp->init = raw3270_request_alloc(0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment