staging: hv: remove ASSERT()s and return -EINVAL in RingBuffer.c
authorBill Pemberton <wfp5p@virginia.edu>
Wed, 5 May 2010 19:27:50 +0000 (15:27 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:36:14 +0000 (11:36 -0700)
commita16e1485c758c236915ac1956694d11bff5e5daa
tree6b9bf7e7767ad56c79d7d11d9b5b8bb5eedcc37e
parent3324fb405340cf52fe361697a86d235587402d9c
staging: hv: remove ASSERT()s and return -EINVAL in RingBuffer.c

return -EINVAL instead of calling ASSERT() for these conditionals.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/RingBuffer.c