[Intel-wired-lan] [PATCH net-next v9 4/5] ice: enable FW logging based on stored configuration

Paul M Stillwell Jr paul.m.stillwell.jr at intel.com
Mon Mar 6 22:14:29 UTC 2023


On 3/3/2023 3:22 PM, Tony Nguyen wrote:
> 
> 
> On 3/2/2023 1:51 PM, Paul M Stillwell Jr wrote:
> 
> [...]
> 
>> +int ice_fwlog_set(struct ice_hw *hw, struct ice_fwlog_cfg *cfg)
>> +{
>> +    int status;
>> +
>> +    if (!ice_fwlog_supported(hw))
>> +        return -EOPNOTSUPP;
>> +
>> +    if (!valid_cfg(hw, cfg))
>> +        return -EINVAL;
>> +
>> +    status = ice_aq_fwlog_set(hw, cfg->module_entries,
>> +                  ICE_AQC_FW_LOG_ID_MAX, cfg->options,
>> +                  cfg->log_resolution);
> 
> Return here, no need to assign to status
> 

Done

>> +
>> +    return status;
>> +}
>> +



More information about the Intel-wired-lan mailing list