Staging: hv: storvsc: Cleanup storvsc_host_reset_handler()
Cleanup storvsc_host_reset_handler() by getting rid of storvsc_host_reset(). Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
160463204f
commit
4b270c8b23
1 changed files with 4 additions and 10 deletions
|
@ -1122,8 +1122,11 @@ static int storvsc_get_chs(struct scsi_device *sdev, struct block_device * bdev,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int storvsc_host_reset(struct hv_device *device)
|
static int storvsc_host_reset_handler(struct scsi_cmnd *scmnd)
|
||||||
{
|
{
|
||||||
|
struct hv_host_device *host_dev = shost_priv(scmnd->device->host);
|
||||||
|
struct hv_device *device = host_dev->dev;
|
||||||
|
|
||||||
struct storvsc_device *stor_device;
|
struct storvsc_device *stor_device;
|
||||||
struct hv_storvsc_request *request;
|
struct hv_storvsc_request *request;
|
||||||
struct vstor_packet *vstor_packet;
|
struct vstor_packet *vstor_packet;
|
||||||
|
@ -1165,15 +1168,6 @@ static int storvsc_host_reset(struct hv_device *device)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int storvsc_host_reset_handler(struct scsi_cmnd *scmnd)
|
|
||||||
{
|
|
||||||
struct hv_host_device *host_dev = shost_priv(scmnd->device->host);
|
|
||||||
struct hv_device *dev = host_dev->dev;
|
|
||||||
|
|
||||||
return storvsc_host_reset(dev);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void storvsc_command_completion(struct hv_storvsc_request *request)
|
static void storvsc_command_completion(struct hv_storvsc_request *request)
|
||||||
{
|
{
|
||||||
struct storvsc_cmd_request *cmd_request =
|
struct storvsc_cmd_request *cmd_request =
|
||||||
|
|
Loading…
Reference in a new issue