diff options
author | Tamara Diaconita <diaconitatamara@gmail.com> | 2017-03-02 20:42:52 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-09 18:15:08 +0100 |
commit | 783dd92b5ba5ec804c52861e62f1bfae8ddf4308 (patch) | |
tree | 0988264752eb53257dee58b530aa162aea83b133 /drivers/staging/media/cxd2099 | |
parent | staging: cxd2099: Remove multiple blank lines (diff) | |
download | linux-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.c | 2 |
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; |