From: Bill Pemberton Date: Wed, 5 May 2010 19:27:55 +0000 (-0400) Subject: staging: hv: replace ASSERT() with WARN_ON() in NetVsc.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a09876d2a68aab6c7a7d9df60eb0eb13467af11;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git staging: hv: replace ASSERT() with WARN_ON() in NetVsc.c Signed-off-by: Bill Pemberton Cc: Hank Janssen Cc: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/NetVsc.c b/drivers/staging/hv/NetVsc.c index 9863ca252bd..ddde39136b6 100644 --- a/drivers/staging/hv/NetVsc.c +++ b/drivers/staging/hv/NetVsc.c @@ -92,7 +92,7 @@ static struct netvsc_device *AllocNetDevice(struct hv_device *Device) static void FreeNetDevice(struct netvsc_device *Device) { - ASSERT(atomic_read(&Device->RefCount) == 0); + WARN_ON(atomic_read(&Device->RefCount) == 0); Device->Device->Extension = NULL; kfree(Device); }