Skip to content

Commit e53a808

Browse files
Dan Carpenteranguy11
authored andcommitted
ice: Remove unnecessary casts
The "bitmap" variable is already an unsigned long so there is no need for this cast. Signed-off-by: Dan Carpenter <[email protected]> Tested-by: Gurucharan G <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent c148469 commit e53a808

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/net/ethernet/intel/ice/ice_sched.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2661,11 +2661,9 @@ ice_cfg_agg(struct ice_port_info *pi, u32 agg_id, enum ice_agg_type agg_type,
26612661
int status;
26622662

26632663
mutex_lock(&pi->sched_lock);
2664-
status = ice_sched_cfg_agg(pi, agg_id, agg_type,
2665-
(unsigned long *)&bitmap);
2664+
status = ice_sched_cfg_agg(pi, agg_id, agg_type, &bitmap);
26662665
if (!status)
2667-
status = ice_save_agg_tc_bitmap(pi, agg_id,
2668-
(unsigned long *)&bitmap);
2666+
status = ice_save_agg_tc_bitmap(pi, agg_id, &bitmap);
26692667
mutex_unlock(&pi->sched_lock);
26702668
return status;
26712669
}

0 commit comments

Comments
 (0)