]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
scsi: sd: Cleanup sd_done sense data handling
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Apr 2017 23:05:12 +0000 (19:05 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 25 Apr 2017 17:00:39 +0000 (13:00 -0400)
commitd227ec267ff4fa91ac2db9965d5392cf825be511
tree0b5e59f91953f978987a605732fccf9c6a28441d
parent6eadc61224666dcc79763dc21749b5f809d82140
scsi: sd: Cleanup sd_done sense data handling

Use a switch for the sense key, and remove two pointless variables that
are only used once.

[mkp: Added UNMAP comment and removed good_bytes based on comment from
Damien]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c