staging:cxd2099:Change kzalloc parameter
Subsystems (2)
PATCH v2 4/5 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 <[email protected]>
--- drivers/staging/media/cxd2099/cxd2099.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/cxd2099/cxd2099.c +1 -1
@@ -694,7 +694,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 ;
Signature · 1 line
2.9.3