mirror of
https://github.com/torvalds/linux.git
synced 2026-10-12 21:31:03 +02: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:
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user