Skip to content

Commit 404f5de

Browse files
author
Kalle Valo
committed
ath11k: remove unnecessary casts to u32
These casts are not needed. No changes in functionality. Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1 Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c83c500 commit 404f5de

File tree

1 file changed

+4
-4
lines changed
  • drivers/net/wireless/ath/ath11k

1 file changed

+4
-4
lines changed

drivers/net/wireless/ath/ath11k/hal.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static void ath11k_hal_srng_dst_hw_init(struct ath11k_base *ab,
330330
if (srng->flags & HAL_SRNG_FLAGS_MSI_INTR) {
331331
ath11k_hif_write32(ab, reg_base +
332332
HAL_REO1_RING_MSI1_BASE_LSB_OFFSET(ab),
333-
(u32)srng->msi_addr);
333+
srng->msi_addr);
334334

335335
val = FIELD_PREP(HAL_REO1_RING_MSI1_BASE_MSB_ADDR,
336336
((u64)srng->msi_addr >>
@@ -344,7 +344,7 @@ static void ath11k_hal_srng_dst_hw_init(struct ath11k_base *ab,
344344
srng->msi_data);
345345
}
346346

347-
ath11k_hif_write32(ab, reg_base, (u32)srng->ring_base_paddr);
347+
ath11k_hif_write32(ab, reg_base, srng->ring_base_paddr);
348348

349349
val = FIELD_PREP(HAL_REO1_RING_BASE_MSB_RING_BASE_ADDR_MSB,
350350
((u64)srng->ring_base_paddr >>
@@ -409,7 +409,7 @@ static void ath11k_hal_srng_src_hw_init(struct ath11k_base *ab,
409409
if (srng->flags & HAL_SRNG_FLAGS_MSI_INTR) {
410410
ath11k_hif_write32(ab, reg_base +
411411
HAL_TCL1_RING_MSI1_BASE_LSB_OFFSET(ab),
412-
(u32)srng->msi_addr);
412+
srng->msi_addr);
413413

414414
val = FIELD_PREP(HAL_TCL1_RING_MSI1_BASE_MSB_ADDR,
415415
((u64)srng->msi_addr >>
@@ -424,7 +424,7 @@ static void ath11k_hal_srng_src_hw_init(struct ath11k_base *ab,
424424
srng->msi_data);
425425
}
426426

427-
ath11k_hif_write32(ab, reg_base, (u32)srng->ring_base_paddr);
427+
ath11k_hif_write32(ab, reg_base, srng->ring_base_paddr);
428428

429429
val = FIELD_PREP(HAL_TCL1_RING_BASE_MSB_RING_BASE_ADDR_MSB,
430430
((u64)srng->ring_base_paddr >>

0 commit comments

Comments
 (0)