diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2020-11-21 03:39:37 +0300 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2021-02-09 03:27:01 +0300 |
commit | 7a63dae0fafba1fcecf44731545a06a7d7a8d339 (patch) | |
tree | 318817d6bd3f30c9ff1fc0185d8e43f1daa85cff /drivers/net/ethernet/intel/ice/ice_switch.c | |
parent | fc2d1165d4a424dd325ae1f45806565350a58013 (diff) | |
download | linux-7a63dae0fafba1fcecf44731545a06a7d7a8d339.tar.xz |
ice: remove unnecessary casts
Casting a void * rvalue in an assignment is unnecessary in C; remove the
casts.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_switch.c')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_switch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_switch.c b/drivers/net/ethernet/intel/ice/ice_switch.c index c33612132ddf..67c965a3f5d2 100644 --- a/drivers/net/ethernet/intel/ice/ice_switch.c +++ b/drivers/net/ethernet/intel/ice/ice_switch.c @@ -603,7 +603,7 @@ enum ice_status ice_get_initial_sw_cfg(struct ice_hw *hw) } } while (req_desc && !status); - devm_kfree(ice_hw_to_dev(hw), (void *)rbuf); + devm_kfree(ice_hw_to_dev(hw), rbuf); return status; } |