]> git.karo-electronics.de Git - linux-beck.git/commit
storvsc: Refactor the code in storvsc_channel_init()
authorK. Y. Srinivasan <kys@microsoft.com>
Wed, 23 Dec 2015 21:15:50 +0000 (13:15 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Jan 2016 20:55:45 +0000 (15:55 -0500)
commit59635018f9b7ae8b3e304d7a5da6f628b5a1dcf6
treef1aacaad914d15fb506128b1cb2baf1f471ffca5
parentdac582417bc449b1f7f572d3f1dd9d23eec15cc9
storvsc: Refactor the code in storvsc_channel_init()

The function storvsc_channel_init() repeatedly interacts with the host
to extract various channel properties. Refactor this code to eliminate
code repetition.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Long Li <longli@microsoft.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Alex Ng <alexng@microsoft.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/storvsc_drv.c