mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 00:43:08 -04:00
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>
This commit is contained in:
committed by
Heiko Carstens
parent
aa08b6a46b
commit
84a8b601ea
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user