diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2017-10-03 13:42:17 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-03 19:28:17 +0300 |
commit | 553aff5f1b174749705b9a3c4715c0f8e3805644 (patch) | |
tree | b1e897f3378d7e77c8bdcdd333931deda25b77b5 /drivers/staging/ccree/ssi_driver.c | |
parent | bdd0873dc28d57651ae2ed4e42bb79526ed684ac (diff) | |
download | linux-553aff5f1b174749705b9a3c4715c0f8e3805644.tar.xz |
staging: ccree: simplify OOM handling
Simplify handling of memory allocation failures and remove
redundant log messages
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ccree/ssi_driver.c')
-rw-r--r-- | drivers/staging/ccree/ssi_driver.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/ccree/ssi_driver.c b/drivers/staging/ccree/ssi_driver.c index c4b608b77b05..795a087d45a4 100644 --- a/drivers/staging/ccree/ssi_driver.c +++ b/drivers/staging/ccree/ssi_driver.c @@ -212,7 +212,6 @@ static int init_cc_resources(struct platform_device *plat_dev) new_drvdata = devm_kzalloc(dev, sizeof(*new_drvdata), GFP_KERNEL); if (!new_drvdata) { - dev_dbg(dev, "Failed to allocate drvdata"); rc = -ENOMEM; goto post_drvdata_err; } |