crypto: qat - remove cast for mailbox CSR
PATCH 1/1 crypto: qat - remove cast for mailbox CSR
From: Adam Guerin <[email protected]>
Remove cast for mailbox CSR in adf_admin.c as it is not needed.
Suggested-by Andy Shevchenko <[email protected]>
Signed-off-by Adam Guerin <[email protected]>
Reviewed-by Giovanni Cabiddu <[email protected]>
Reviewed-by Andy Shevchenko <[email protected]>
Signed-off-by Giovanni Cabiddu <[email protected]>
--- drivers/crypto/qat/qat_common/adf_admin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/qat/qat_common/adf_admin.c +1 -1
@@ -254,7 +254,7 @@ int adf_init_admin_comms(struct adf_accel_dev *accel_dev) hw_data->get_admin_info (&admin_csrs_info); mailbox_offset = admin_csrs_info.mailbox_offset; - mailbox = (void __iomem *)((uintptr_t )csr + mailbox_offset); + mailbox = csr + mailbox_offset; adminmsg_u = admin_csrs_info.admin_msg_ur; adminmsg_l = admin_csrs_info.admin_msg_lr;
Signature · 1 line
2.28.0
Herbert Xu
maintainerQuoted 4 lines · Giovanni Cabiddu
From: Adam Guerin <[email protected]>
Remove cast for mailbox CSR in
adf_admin.cas it is not needed.
Quoted 8 lines
Suggested-by Andy Shevchenko <[email protected]>Signed-off-by Adam Guerin <[email protected]>Reviewed-by Giovanni Cabiddu <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Giovanni Cabiddu <[email protected]>--- drivers/crypto/qat/qat_common/adf_admin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt