staging: unisys: visornic: convert BUG_ON to dev_err() message
authorTim Sell <Timothy.Sell@unisys.com>
Wed, 13 Apr 2016 15:56:36 +0000 (11:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Apr 2016 05:09:37 +0000 (22:09 -0700)
commit6a957193ba83e5487705f63011307d202fff69f8
tree8cc3eeb865673b9379d47cd24116b892e0c70bb6
parent853adce6fd9a3caec583e115cd9f5def6f67daf7
staging: unisys: visornic: convert BUG_ON to dev_err() message

The caller of visor_copy_fragsinfo_from_skb() is prepared to log a
dev_err() message if it fails (by returning a negative value), so we now
just fail in the one occasion where visor_copy_fragsinfo_from_skb() was
doing a BUG_ON.

There was also a problem before where visor_copy_fragsinfo_from_skb() was
returning a negative to indicate error, yet it was declared to return an
unsigned value!  So obviously that needed correcting too.

Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c