Commit 31f085fea891d5972e994dfb423231a3d4d60a8a

Authored by Dan Carpenter
Committed by Marcel Holtmann
1 parent f48fd9c8cd

Bluetooth: Fix storing negative values as unsigned char

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/bluetooth/btmrvl_main.c
... ... @@ -66,7 +66,7 @@
66 66 {
67 67 struct btmrvl_adapter *adapter = priv->adapter;
68 68 struct btmrvl_event *event;
69   - u8 ret = 0;
  69 + int ret = 0;
70 70  
71 71 event = (struct btmrvl_event *) skb->data;
72 72 if (event->ec != 0xff) {