staging: nvec: Avoid the use of BUG_ON
authorLaura Garcia Liebana <nevola@gmail.com>
Wed, 24 Feb 2016 17:11:07 +0000 (18:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
commit350698f6efe844f9f40bf47da7bbab75eba34c61
treee3bd1eaa84bff3e700ab452f7a4d45978888b19c
parentaaa657312a6b483af870bd7b412a1467b7808725
staging: nvec: Avoid the use of BUG_ON

Prevent a kernel panic by avoiding the use of the BUG_ON macro.
Checkpatch detected this issue.

The BUG_ON macro is not needed as such cases shouldn't happen and they
were introduced for debugging purposes.

Signed-off-by: Laura Garcia Liebana <nevola@gmail.com>
Acked-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nvec/nvec.c