Skip to contentSkip to conversation

crypto: qat - remove cast for mailbox CSR

PATCH In review Giovanni Cabiddu 2 participants 2 messages Nov 2, 2020 – Nov 13, 2020 Crypto API

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 7c2ca54229aa..43680e178242 100644
@@ -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
maintainer
#1 lore raw
Quoted 4 lines · Giovanni Cabiddu

From: Adam Guerin <[email protected]>

Remove cast for mailbox CSR in adf_admin.c as it is not needed.

Quoted 8 lines
---
 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