mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
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:
parent
c14846914e
commit
e53a80835f
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user