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 <dan.carpenter@oracle.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
Dan Carpenter 2021-11-10 10:50:23 +03:00 committed by Tony Nguyen
parent c14846914e
commit e53a80835f

View File

@ -2661,11 +2661,9 @@ ice_cfg_agg(struct ice_port_info *pi, u32 agg_id, enum ice_agg_type agg_type,
int status;
mutex_lock(&pi->sched_lock);
status = ice_sched_cfg_agg(pi, agg_id, agg_type,
(unsigned long *)&bitmap);
status = ice_sched_cfg_agg(pi, agg_id, agg_type, &bitmap);
if (!status)
status = ice_save_agg_tc_bitmap(pi, agg_id,
(unsigned long *)&bitmap);
status = ice_save_agg_tc_bitmap(pi, agg_id, &bitmap);
mutex_unlock(&pi->sched_lock);
return status;
}