]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6fa9b86e552d2bf3655ae9b1d3cf45bb11a3cf2f
treec9ff04a4b565cf50e315f029a1e253424711213e
parentf9bb4b753eb00c02014e4467a28609f4f6ac7f88
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