scsi: gdth: refactor ioc_general
authorChristoph Hellwig <hch@lst.de>
Wed, 12 Dec 2018 07:41:18 +0000 (08:41 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Jan 2019 02:57:41 +0000 (21:57 -0500)
commit9f475ebff8e437ccccb3cf0259b5de7540f413be
treec9ff04a4b565cf50e315f029a1e253424711213e
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
scsi: gdth: refactor ioc_general

This function is a huge mess with duplicated error handling.  Split out
a few useful helpers and use goto labels to untangle the error handling
and no-data ioctl handling.

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