summaryrefslogtreecommitdiff
path: root/drivers/staging/ccree/ssi_request_mgr.c
diff options
context:
space:
mode:
authorSimon Sandström <simon@nikanor.nu>2017-07-30 23:29:02 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-17 01:10:42 +0300
commit8bf48512916a3fce7201f7d469d304a7824a87d4 (patch)
tree01a23f1a511e05b2fd53eab028b76acdf7050ac8 /drivers/staging/ccree/ssi_request_mgr.c
parentb4bac77f2a2e3faada7313e8f6b8b4fcca7e07b8 (diff)
downloadlinux-8bf48512916a3fce7201f7d469d304a7824a87d4.tar.xz
staging: ccree: Use sizeof(variable) in memory allocs
Fixes 9 checkpatch.pl warnings of type "Prefer kmalloc(sizeof(variable)...) over kmalloc(sizeof(type)...)" in staging/ccree. Signed-off-by: Simon Sandström <simon@nikanor.nu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ccree/ssi_request_mgr.c')
-rw-r--r--drivers/staging/ccree/ssi_request_mgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ccree/ssi_request_mgr.c b/drivers/staging/ccree/ssi_request_mgr.c
index 2eda82f317d2..e5c2f92857f6 100644
--- a/drivers/staging/ccree/ssi_request_mgr.c
+++ b/drivers/staging/ccree/ssi_request_mgr.c
@@ -100,7 +100,7 @@ int request_mgr_init(struct ssi_drvdata *drvdata)
struct ssi_request_mgr_handle *req_mgr_h;
int rc = 0;
- req_mgr_h = kzalloc(sizeof(struct ssi_request_mgr_handle), GFP_KERNEL);
+ req_mgr_h = kzalloc(sizeof(*req_mgr_h), GFP_KERNEL);
if (!req_mgr_h) {
rc = -ENOMEM;
goto req_mgr_init_err;