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

Tony Nguyen anthony.l.nguyen at intel.com
Fri Mar 3 23:22:31 UTC 2023



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

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


More information about the Intel-wired-lan mailing list