aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/media/cxd2099
diff options
context:
space:
mode:
authorTamara Diaconita <diaconitatamara@gmail.com>2017-03-02 20:42:52 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-09 18:15:08 +0100
commit783dd92b5ba5ec804c52861e62f1bfae8ddf4308 (patch)
tree0988264752eb53257dee58b530aa162aea83b133 /drivers/staging/media/cxd2099
parentstaging: cxd2099: Remove multiple blank lines (diff)
downloadlinux-dev-783dd92b5ba5ec804c52861e62f1bfae8ddf4308.tar.xz
linux-dev-783dd92b5ba5ec804c52861e62f1bfae8ddf4308.zip
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 <diaconita.tamara@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/media/cxd2099')
-rw-r--r--drivers/staging/media/cxd2099/cxd2099.c2
1 files changed, 1 insertions, 1 deletions
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;