Skip to content

Commit 4e07b56

Browse files
committed
crypto: qat - remove initialization in device class
JIRA: https://issues.redhat.com/browse/RHEL-72768 Upstream Status: merged into herbert/crypto-2.6.git commit e5661d9 Author: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Date: Wed Mar 26 16:23:01 2025 +0000 crypto: qat - remove initialization in device class The structures adf_hw_device_class_* are static. Remove initialization to zero of the field instance as it is zero by C convention. This does not introduce any functional change. Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Vladis Dronov <vdronov@redhat.com>
1 parent 665400f commit 4e07b56

File tree

8 files changed

+0
-8
lines changed

8 files changed

+0
-8
lines changed

drivers/crypto/intel/qat/qat_420xx/adf_420xx_hw_data.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ static const struct adf_fw_config adf_fw_dcc_config[] = {
9393
static struct adf_hw_device_class adf_420xx_class = {
9494
.name = ADF_420XX_DEVICE_NAME,
9595
.type = DEV_420XX,
96-
.instances = 0,
9796
};
9897

9998
static u32 get_ae_mask(struct adf_hw_device_data *self)

drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ static_assert(ARRAY_SIZE(adf_fw_cy_config) == ARRAY_SIZE(adf_fw_dcc_config));
9696
static struct adf_hw_device_class adf_4xxx_class = {
9797
.name = ADF_4XXX_DEVICE_NAME,
9898
.type = DEV_4XXX,
99-
.instances = 0,
10099
};
101100

102101
static u32 get_ae_mask(struct adf_hw_device_data *self)

drivers/crypto/intel/qat/qat_c3xxx/adf_c3xxx_hw_data.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ static const u32 thrd_to_arb_map[ADF_C3XXX_MAX_ACCELENGINES] = {
2222
static struct adf_hw_device_class c3xxx_class = {
2323
.name = ADF_C3XXX_DEVICE_NAME,
2424
.type = DEV_C3XXX,
25-
.instances = 0
2625
};
2726

2827
static u32 get_accel_mask(struct adf_hw_device_data *self)

drivers/crypto/intel/qat/qat_c3xxxvf/adf_c3xxxvf_hw_data.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
static struct adf_hw_device_class c3xxxiov_class = {
1414
.name = ADF_C3XXXVF_DEVICE_NAME,
1515
.type = DEV_C3XXXVF,
16-
.instances = 0
1716
};
1817

1918
static u32 get_accel_mask(struct adf_hw_device_data *self)

drivers/crypto/intel/qat/qat_c62x/adf_c62x_hw_data.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ static const u32 thrd_to_arb_map[ADF_C62X_MAX_ACCELENGINES] = {
2222
static struct adf_hw_device_class c62x_class = {
2323
.name = ADF_C62X_DEVICE_NAME,
2424
.type = DEV_C62X,
25-
.instances = 0
2625
};
2726

2827
static u32 get_accel_mask(struct adf_hw_device_data *self)

drivers/crypto/intel/qat/qat_c62xvf/adf_c62xvf_hw_data.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
static struct adf_hw_device_class c62xiov_class = {
1414
.name = ADF_C62XVF_DEVICE_NAME,
1515
.type = DEV_C62XVF,
16-
.instances = 0
1716
};
1817

1918
static u32 get_accel_mask(struct adf_hw_device_data *self)

drivers/crypto/intel/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ static const u32 thrd_to_arb_map[ADF_DH895XCC_MAX_ACCELENGINES] = {
2424
static struct adf_hw_device_class dh895xcc_class = {
2525
.name = ADF_DH895XCC_DEVICE_NAME,
2626
.type = DEV_DH895XCC,
27-
.instances = 0
2827
};
2928

3029
static u32 get_accel_mask(struct adf_hw_device_data *self)

drivers/crypto/intel/qat/qat_dh895xccvf/adf_dh895xccvf_hw_data.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
static struct adf_hw_device_class dh895xcciov_class = {
1414
.name = ADF_DH895XCCVF_DEVICE_NAME,
1515
.type = DEV_DH895XCCVF,
16-
.instances = 0
1716
};
1817

1918
static u32 get_accel_mask(struct adf_hw_device_data *self)

0 commit comments

Comments
 (0)