Skip to content

Commit

Permalink
Bluetooth: ath3k: Silence uninitialized variable warning
Browse files Browse the repository at this point in the history
We could print an uninitialized value in the error message.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Dan Carpenter authored and Marcel Holtmann committed Apr 22, 2016
1 parent 151c37b commit e9fc716
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/bluetooth/ath3k.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ static int ath3k_load_firmware(struct usb_device *udev,
const struct firmware *firmware)
{
u8 *send_buf;
int err, pipe, len, size, sent = 0;
int len = 0;
int err, pipe, size, sent = 0;
int count = firmware->size;

BT_DBG("udev %p", udev);
Expand Down Expand Up @@ -302,7 +303,8 @@ static int ath3k_load_fwfile(struct usb_device *udev,
const struct firmware *firmware)
{
u8 *send_buf;
int err, pipe, len, size, count, sent = 0;
int len = 0;
int err, pipe, size, count, sent = 0;
int ret;

count = firmware->size;
Expand Down

0 comments on commit e9fc716

Please sign in to comment.