Re: [PATCH 14/42] scsi: add scsi_result_is_good()

Bart Van Assche
2021-04-21T21:10:26Z

On 4/21/21 10:47 AM, Hannes Reinecke wrote:
> +static inline bool scsi_result_is_good(struct scsi_cmnd *cmd)
> +{
> + return (cmd->result == 0);
> +}

Do we really need an inline function to compare an integer with zero?
How about open-coding this comparison in the callers of this function?

Thanks,

Bart.