Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e5166b5 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman
Browse files

staging: hv: remove ASSERT()s in blkvsc_drv.c



These ASSERT()s serve no purpose other than for debugging.

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5afd06cc
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -288,8 +288,8 @@ static int blkvsc_probe(struct device *device)
	/* Initialize what we can here */
	/* Initialize what we can here */
	spin_lock_init(&blkdev->lock);
	spin_lock_init(&blkdev->lock);


	ASSERT(sizeof(struct blkvsc_request_group) <=
	/* ASSERT(sizeof(struct blkvsc_request_group) <= */
		sizeof(struct blkvsc_request));
	/* 	sizeof(struct blkvsc_request)); */


	blkdev->request_pool = kmem_cache_create(dev_name(&device_ctx->device),
	blkdev->request_pool = kmem_cache_create(dev_name(&device_ctx->device),
					sizeof(struct blkvsc_request) +
					sizeof(struct blkvsc_request) +
@@ -808,8 +808,8 @@ static int blkvsc_remove(struct device *device)


static void blkvsc_init_rw(struct blkvsc_request *blkvsc_req)
static void blkvsc_init_rw(struct blkvsc_request *blkvsc_req)
{
{
	ASSERT(blkvsc_req->req);
	/* ASSERT(blkvsc_req->req); */
	ASSERT(blkvsc_req->sector_count <= (MAX_MULTIPAGE_BUFFER_COUNT*8));
	/* ASSERT(blkvsc_req->sector_count <= (MAX_MULTIPAGE_BUFFER_COUNT*8)); */


	blkvsc_req->cmd_len = 16;
	blkvsc_req->cmd_len = 16;


@@ -1116,7 +1116,7 @@ static void blkvsc_request_completion(struct hv_storvsc_request *request)
	unsigned long flags;
	unsigned long flags;
	struct blkvsc_request *comp_req, *tmp;
	struct blkvsc_request *comp_req, *tmp;


	ASSERT(blkvsc_req->group);
	/* ASSERT(blkvsc_req->group); */


	DPRINT_DBG(BLKVSC_DRV, "blkdev %p blkvsc_req %p group %p type %s "
	DPRINT_DBG(BLKVSC_DRV, "blkdev %p blkvsc_req %p group %p type %s "
		   "sect_start %lu sect_count %ld len %d group outstd %d "
		   "sect_start %lu sect_count %ld len %d group outstd %d "