From: Haiyang Zhang Date: Fri, 18 Feb 2011 23:05:52 +0000 (-0800) Subject: staging: hv: Remove unnecessary ASSERTs in netvsc_initialize() X-Git-Tag: MMI-PSA29.97-13-9~20521^2~468 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6fbb47859faa88e7fca458497d9688e928e587e1;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: hv: Remove unnecessary ASSERTs in netvsc_initialize() These fields have been assigned in netvsc_drv_init() before calling netvsc_initialize(), so there is no need to check them. The ASSERTs were already commented out, and this patch removes them. Signed-off-by: Haiyang Zhang Signed-off-by: K. Y. Srinivasan Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index 8c6d4ae54be2..f21a59db169c 100644 --- a/drivers/staging/hv/netvsc.c +++ b/drivers/staging/hv/netvsc.c @@ -188,11 +188,6 @@ int netvsc_initialize(struct hv_driver *drv) drv->name = driver_name; memcpy(&drv->dev_type, &netvsc_device_type, sizeof(struct hv_guid)); - /* Make sure it is set by the caller */ - /* FIXME: These probably should still be tested in some way */ - /* ASSERT(driver->OnReceiveCallback); */ - /* ASSERT(driver->OnLinkStatusChanged); */ - /* Setup the dispatch table */ driver->base.dev_add = netvsc_device_add; driver->base.dev_rm = netvsc_device_remove;