Skip to content
Snippets Groups Projects
Commit d7a84021 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

scsi: introduce scsi_sense_from_errno()


The new function is an extension of the switch statement in scsi-disk.c
which also includes the errno cases only found in sg_io_sense_from_errno.
This allows us to consolidate the errno handling.

Extracted from a patch by Hannes Reinecke <hare@suse.de>.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 424740de
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment