Skip to content

Commit

Permalink
Staging: hv: storvsc: Cleanup some dated/unnecessary comments
Browse files Browse the repository at this point in the history
Cleanup some dated/unnecessary comments.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent 2935a40 commit d36b0a0
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,6 @@ static unsigned int copy_to_bounce_buffer(struct scatterlist *orig_sgl,
}


/*
* storvsc_remove - Callback when our device is removed
*/
static int storvsc_remove(struct hv_device *dev)
{
struct Scsi_Host *host = dev_get_drvdata(&dev->device);
Expand All @@ -322,10 +319,7 @@ static int storvsc_remove(struct hv_device *dev)

DPRINT_INFO(STORVSC, "releasing host adapter (%p)...", host);
scsi_host_put(host);
/*
* Call to the vsc driver to let it know that the device is being
* removed
*/

storvsc_dev_remove(dev);
if (host_dev->request_pool) {
kmem_cache_destroy(host_dev->request_pool);
Expand Down Expand Up @@ -423,7 +417,6 @@ static int storvsc_host_reset_handler(struct scsi_cmnd *scmnd)
DPRINT_INFO(STORVSC_DRV, "sdev (%p) dev obj (%p) - host resetting...",
scmnd->device, dev);

/* Invokes the vsc to reset the host/bus */
ret = storvsc_host_reset(dev);
if (ret != 0)
return ret;
Expand Down Expand Up @@ -477,7 +470,6 @@ static void storvsc_commmand_completion(struct hv_storvsc_request *request)
scmnd->host_scribble = NULL;
scmnd->scsi_done = NULL;

/* !!DO NOT MODIFY the scmnd after this call */
scsi_done_fn(scmnd);

kmem_cache_free(host_dev->request_pool, cmd_request);
Expand Down Expand Up @@ -750,10 +742,6 @@ static struct hv_driver storvsc_drv = {
.remove = storvsc_remove,
};


/*
* storvsc_drv_init - StorVsc driver initialization.
*/
static int __init storvsc_drv_init(void)
{
int ret;
Expand Down

0 comments on commit d36b0a0

Please sign in to comment.