]> git.baikalelectronics.ru Git - kernel.git/commit
storvsc: use shost_for_each_device() instead of open coding
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 1 Jul 2015 09:31:27 +0000 (11:31 +0200)
committerJames Bottomley <JBottomley@Odin.com>
Wed, 12 Aug 2015 23:03:13 +0000 (16:03 -0700)
commitf1cf440c3bde5c925a34bf0e9602872f87e9cfe7
tree6629070fdf46544c0a33aaa53cad18fc3c9baf90
parentd6d46050963ce2ae31830e23b6a0ff102915bff3
storvsc: use shost_for_each_device() instead of open coding

Comment in struct Scsi_Host says that drivers are not supposed to access
__devices directly. storvsc_host_scan() doesn't happen in irq context
so we can just use shost_for_each_device().

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Long Li <longli@microsoft.com>
Acked-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/storvsc_drv.c