crypto: qat - remove initialization in device class
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Wed, 26 Mar 2025 16:23:01 +0000 (16:23 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 7 Apr 2025 05:22:26 +0000 (13:22 +0800)
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>
drivers/crypto/intel/qat/qat_420xx/adf_420xx_hw_data.c
drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c
drivers/crypto/intel/qat/qat_c3xxx/adf_c3xxx_hw_data.c
drivers/crypto/intel/qat/qat_c3xxxvf/adf_c3xxxvf_hw_data.c
drivers/crypto/intel/qat/qat_c62x/adf_c62x_hw_data.c
drivers/crypto/intel/qat/qat_c62xvf/adf_c62xvf_hw_data.c
drivers/crypto/intel/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c
drivers/crypto/intel/qat/qat_dh895xccvf/adf_dh895xccvf_hw_data.c

index 4feeef83f7a3ee915a7e1e9ba2f79446e1fe20ba..795f4598400bcee526290cde46b3bfbd89d7a4dd 100644 (file)
@@ -93,7 +93,6 @@ static const struct adf_fw_config adf_fw_dcc_config[] = {
 static struct adf_hw_device_class adf_420xx_class = {
        .name = ADF_420XX_DEVICE_NAME,
        .type = DEV_420XX,
-       .instances = 0,
 };
 
 static u32 get_ae_mask(struct adf_hw_device_data *self)
index 4eb6ef99efddee7612760a6fef813c990bbaf184..63c7c8e90cca25b0082147d6ae64f10984303b97 100644 (file)
@@ -96,7 +96,6 @@ static_assert(ARRAY_SIZE(adf_fw_cy_config) == ARRAY_SIZE(adf_fw_dcc_config));
 static struct adf_hw_device_class adf_4xxx_class = {
        .name = ADF_4XXX_DEVICE_NAME,
        .type = DEV_4XXX,
-       .instances = 0,
 };
 
 static u32 get_ae_mask(struct adf_hw_device_data *self)
index e78f7bfd30b85a72459ac01e4e05e4e396878130..9425af26d34c06f2a070191f020078c447c05c59 100644 (file)
@@ -22,7 +22,6 @@ static const u32 thrd_to_arb_map[ADF_C3XXX_MAX_ACCELENGINES] = {
 static struct adf_hw_device_class c3xxx_class = {
        .name = ADF_C3XXX_DEVICE_NAME,
        .type = DEV_C3XXX,
-       .instances = 0
 };
 
 static u32 get_accel_mask(struct adf_hw_device_data *self)
index a512ca4efd3f9caef8a4cb581c28a54ad9946331..f73d9a4a9ab73ecdfb4ff3d62093b99037bb8cbb 100644 (file)
@@ -13,7 +13,6 @@
 static struct adf_hw_device_class c3xxxiov_class = {
        .name = ADF_C3XXXVF_DEVICE_NAME,
        .type = DEV_C3XXXVF,
-       .instances = 0
 };
 
 static u32 get_accel_mask(struct adf_hw_device_data *self)
index 32ebe09477a8dd57b9cd80481d29c2cf8900b302..1a2f36b603fbf4a9ec8fe533d1e2e05d76f457b7 100644 (file)
@@ -22,7 +22,6 @@ static const u32 thrd_to_arb_map[ADF_C62X_MAX_ACCELENGINES] = {
 static struct adf_hw_device_class c62x_class = {
        .name = ADF_C62X_DEVICE_NAME,
        .type = DEV_C62X,
-       .instances = 0
 };
 
 static u32 get_accel_mask(struct adf_hw_device_data *self)
index 4aaaaf921734689ed5c86c0fd8f4bba670205012..29e53b41a8959254ad783532af01b672f353f089 100644 (file)
@@ -13,7 +13,6 @@
 static struct adf_hw_device_class c62xiov_class = {
        .name = ADF_C62XVF_DEVICE_NAME,
        .type = DEV_C62XVF,
-       .instances = 0
 };
 
 static u32 get_accel_mask(struct adf_hw_device_data *self)
index e48bcf1818cd1a291fabd02bd6d1b11723c638bd..bf9e8f34f451e35ad887c20013444f56c2050afe 100644 (file)
@@ -24,7 +24,6 @@ static const u32 thrd_to_arb_map[ADF_DH895XCC_MAX_ACCELENGINES] = {
 static struct adf_hw_device_class dh895xcc_class = {
        .name = ADF_DH895XCC_DEVICE_NAME,
        .type = DEV_DH895XCC,
-       .instances = 0
 };
 
 static u32 get_accel_mask(struct adf_hw_device_data *self)
index f4ee4c2e00da82535e2fdd4aca14ac5f85f74a06..bc59c1473eefabe300b8b2a8959719b16be62bc5 100644 (file)
@@ -13,7 +13,6 @@
 static struct adf_hw_device_class dh895xcciov_class = {
        .name = ADF_DH895XCCVF_DEVICE_NAME,
        .type = DEV_DH895XCCVF,
-       .instances = 0
 };
 
 static u32 get_accel_mask(struct adf_hw_device_data *self)