Skip to content

Commit

Permalink
Bluetooth: Fix storing negative values as unsigned char
Browse files Browse the repository at this point in the history
This is mostly cleanup. There is only one caller and it just checks for
non-zero return values. Still "ret" should be int because we want to return
-EINVAL on errors.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Dan Carpenter authored and Marcel Holtmann committed May 10, 2010
1 parent f48fd9c commit 31f085f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/bluetooth/btmrvl_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ int btmrvl_process_event(struct btmrvl_private *priv, struct sk_buff *skb)
{
struct btmrvl_adapter *adapter = priv->adapter;
struct btmrvl_event *event;
u8 ret = 0;
int ret = 0;

event = (struct btmrvl_event *) skb->data;
if (event->ec != 0xff) {
Expand Down

0 comments on commit 31f085f

Please sign in to comment.