]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ice: Remove unnecessary casts
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 10 Nov 2021 07:50:23 +0000 (10:50 +0300)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 14 Dec 2021 18:19:14 +0000 (10:19 -0800)
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>
drivers/net/ethernet/intel/ice/ice_sched.c

index b4bf18f9d4e39efb3e81ba9a4d8ed24b32cfb21f..7947223536e37b4ed984e5dfad83b123dde32ff0 100644 (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;
 }