Skip to contentSkip to conversation

staging:cxd2099:Change kzalloc parameter

PATCH In review Tamara Diaconita 1 participant 1 message Mar 2, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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)).

---
 drivers/staging/media/cxd2099/cxd2099.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/cxd2099/cxd2099.c +1 -1
index 001bffe..d0e012c 100644
@@ -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