From: Tamara Diaconita Date: Thu, 2 Mar 2017 18:42:52 +0000 (+0200) Subject: staging: cxd2099: Change kzalloc parameter X-Git-Tag: v4.12-rc1~84^2~665 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=783dd92b5ba5ec804c52861e62f1bfae8ddf4308;p=linux.git staging: cxd2099: Change kzalloc parameter Changed the structure tag 'struct cxd' with the variable '*ci' to fix the following checkpath.pl issue: CHECK: Prefer kzalloc(sizeof(*ci)...) over kzalloc(sizeof(struct cxd)). Signed-off-by: Tamara Diaconita Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/media/cxd2099/cxd2099.c b/drivers/staging/media/cxd2099/cxd2099.c index b26f28db9bb9..2257b2fa3c7f 100644 --- a/drivers/staging/media/cxd2099/cxd2099.c +++ b/drivers/staging/media/cxd2099/cxd2099.c @@ -693,7 +693,7 @@ struct dvb_ca_en50221 *cxd2099_attach(struct cxd2099_cfg *cfg, return NULL; } - ci = kzalloc(sizeof(struct cxd), GFP_KERNEL); + ci = kzalloc(sizeof(*ci), GFP_KERNEL); if (!ci) return NULL;