Skip to content

Commit 4e2e865

Browse files
JoePerchesdavem330
authored andcommitted
qlcnic: Remove casts of pointer to same type
Casting a pointer to a pointer of the same type is pointless, so remove these unnecessary casts. Done via coccinelle script: $ cat typecast_2.cocci @@ type T; T *foo; @@ - (T *)foo + foo Signed-off-by: Joe Perches <[email protected]> Acked-by: Shahed Shaikh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 60f4010 commit 4e2e865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ static int qlcnic_83xx_copy_fw_file(struct qlcnic_adapter *adapter)
13881388
addr = (u64)dest;
13891389

13901390
ret = qlcnic_83xx_ms_mem_write128(adapter, addr,
1391-
(u32 *)p_cache, size / 16);
1391+
p_cache, size / 16);
13921392
if (ret) {
13931393
dev_err(&adapter->pdev->dev, "MS memory write failed\n");
13941394
release_firmware(fw);

0 commit comments

Comments
 (0)