summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/qat/qat_common/adf_cfg.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-22 16:14:16 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2019-02-01 14:42:03 +0800
commitf0fcf9ade46abd64091fab8891ff5f690f7c8d7d (patch)
treeb4fd17eacad3845f1e856c31feed43dc73d1eefe /drivers/crypto/qat/qat_common/adf_cfg.c
parent763069ba49d3fa342fe35487d5de10fcf1589381 (diff)
downloadlinux-stable-f0fcf9ade46abd64091fab8891ff5f690f7c8d7d.tar.gz
linux-stable-f0fcf9ade46abd64091fab8891ff5f690f7c8d7d.tar.bz2
linux-stable-f0fcf9ade46abd64091fab8891ff5f690f7c8d7d.zip
crypto: qat - no need to check return value of debugfs_create functions
When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Cc: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: "David S. Miller" <davem@davemloft.net> Cc: Conor McLoughlin <conor.mcloughlin@intel.com> Cc: Waiman Long <longman@redhat.com> Cc: qat-linux@intel.com Cc: linux-crypto@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qat/qat_common/adf_cfg.c')
-rw-r--r--drivers/crypto/qat/qat_common/adf_cfg.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_cfg.c b/drivers/crypto/qat/qat_common/adf_cfg.c
index d0879790561f..5c7fdb0fc53d 100644
--- a/drivers/crypto/qat/qat_common/adf_cfg.c
+++ b/drivers/crypto/qat/qat_common/adf_cfg.c
@@ -141,13 +141,6 @@ int adf_cfg_dev_add(struct adf_accel_dev *accel_dev)
accel_dev->debugfs_dir,
dev_cfg_data,
&qat_dev_cfg_fops);
- if (!dev_cfg_data->debug) {
- dev_err(&GET_DEV(accel_dev),
- "Failed to create qat cfg debugfs entry.\n");
- kfree(dev_cfg_data);
- accel_dev->cfg = NULL;
- return -EFAULT;
- }
return 0;
}
EXPORT_SYMBOL_GPL(adf_cfg_dev_add);