summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Chiappero <marco.chiappero@intel.com>2022-04-07 18:54:43 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2022-04-15 10:34:26 +0200
commit992ec1fa86919933bfe2963473ef291b2031556d (patch)
treef05c52d2deb5fbb10b814394fc013de912c83c7e
parentcrypto: qat - fix ETR sources enabled by default on GEN2 devices (diff)
downloadlinux-992ec1fa86919933bfe2963473ef291b2031556d.tar.xz
linux-992ec1fa86919933bfe2963473ef291b2031556d.zip
crypto: qat - remove unneeded braces
Remove unnecessary braces around a single statement in a for loop. Signed-off-by: Marco Chiappero <marco.chiappero@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/qat/qat_common/adf_sriov.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_sriov.c b/drivers/crypto/qat/qat_common/adf_sriov.c
index 7f9c18dc4540..887d95ec1f48 100644
--- a/drivers/crypto/qat/qat_common/adf_sriov.c
+++ b/drivers/crypto/qat/qat_common/adf_sriov.c
@@ -116,9 +116,8 @@ void adf_disable_sriov(struct adf_accel_dev *accel_dev)
if (hw_data->configure_iov_threads)
hw_data->configure_iov_threads(accel_dev, false);
- for (i = 0, vf = accel_dev->pf.vf_info; i < totalvfs; i++, vf++) {
+ for (i = 0, vf = accel_dev->pf.vf_info; i < totalvfs; i++, vf++)
mutex_destroy(&vf->pf2vf_lock);
- }
kfree(accel_dev->pf.vf_info);
accel_dev->pf.vf_info = NULL;