Commit e53a8083 authored by Dan Carpenter's avatar Dan Carpenter Committed by Tony Nguyen
Browse files

ice: Remove unnecessary casts



The "bitmap" variable is already an unsigned long so there is no need
for this cast.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Tested-by: default avatarGurucharan G <gurucharanx.g@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent c1484691
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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;
}