Commit d351c2db authored by Committed by Greg Kroah-HartmanBrowse files
staging: speakup: Replace BUG_ON() with WARN_ON().
BUG_ON() is replaced with WARN_ON() and EINVAL is returned, when WARN_ON() is true. This fixes the following checkpatch issue: Avoid crashing the kernel - try using WARN_ON & recovery code rather than BUG() or BUG_ON(). Signed-off-by: Varsha Rao <firstname.lastname@example.org> Reviewed-by: Samuel Thibault <email@example.com> Signed-off-by: Greg Kroah-Hartman <firstname.lastname@example.org>