Re: [PATCH 06/43] hpsa: hpsa decode sense data for io and tmf

Christoph Hellwig
2015-02-23T20:18:03Z

On Sat, Feb 21, 2015 at 04:18:03PM -0600, Don Brace wrote:
> +/* extract sense key, asc, and ascq from sense data. -1 means invalid. */
> +static void decode_sense_data(const u8 *sense_data, int sense_data_len,
> + int *sense_key, int *asc, int *ascq)
> +{

Can't you just use scsi_normalize_sense()?