diff options
author | Cabiddu, Giovanni <giovanni.cabiddu@intel.com> | 2024-09-16 12:42:51 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-10-05 08:22:05 +0300 |
commit | 23717055a79981daf7fafa09a4b0d7566f8384aa (patch) | |
tree | 37f795741c7fa141f9c760b2f6161a5edc9fdc80 /scripts/lib/kdoc/kdoc_files.py | |
parent | 254a694378841c8a3bb490b2f1e18a2bd7f47ae2 (diff) | |
download | linux-23717055a79981daf7fafa09a4b0d7566f8384aa.tar.xz |
crypto: qat - remove check after debugfs_create_dir()
The debugfs functions are guaranteed to return a valid error code
instead of NULL upon failure. Consequently, the driver can directly
propagate any error returned without additional checks.
Remove the unnecessary `if` statement after debugfs_create_dir(). If
this function fails, the error code is stored in accel_dev->debugfs_dir
and utilized in subsequent debugfs calls.
Additionally, since accel_dev->debugfs_dir is assured to be non-NULL,
remove the superfluous NULL pointer checks within the adf_dbgfs_add()
and adf_dbgfs_rm().
Fixes: 9260db6640a6 ("crypto: qat - move dbgfs init to separate file")
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions