scsi_dh_alua: rework alua_check_tpgs() to return the tpgs mode
authorHannes Reinecke <hare@suse.de>
Tue, 1 Dec 2015 09:16:53 +0000 (10:16 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 2 Dec 2015 21:37:55 +0000 (16:37 -0500)
commitad0ea64c53f5808e29784812fbb0c300f3a89d39
tree869477c5b517973b68fef7acd5fecf128ac6f75e
parenta7089770b95902854f48b3bc7bec026dc8403286
scsi_dh_alua: rework alua_check_tpgs() to return the tpgs mode

Instead of returning an error code in alua_check_tpgs() we should
rather return the tpgs mode directly and have a cleaner syntax.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/device_handler/scsi_dh_alua.c