From 783dd92b5ba5ec804c52861e62f1bfae8ddf4308 Mon Sep 17 00:00:00 2001 From: Tamara Diaconita Date: Thu, 2 Mar 2017 20:42:52 +0200 Subject: [PATCH] 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 --- drivers/staging/media/cxd2099/cxd2099.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.2