Commit 34a55eda authored by Andre Haupt's avatar Andre Haupt Committed by Marcel Holtmann

Bluetooth: Eliminate a sparse warning in bt3c driver

This eliminates a sparse warning that symbol 'stat' shadows an earlier one.
Signed-off-by: default avatarAndre Haupt <andre@bitwigglers.org>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent dd2efd03
...@@ -359,9 +359,9 @@ static irqreturn_t bt3c_interrupt(int irq, void *dev_inst) ...@@ -359,9 +359,9 @@ static irqreturn_t bt3c_interrupt(int irq, void *dev_inst)
BT_ERR("Very strange (stat=0x%04x)", stat); BT_ERR("Very strange (stat=0x%04x)", stat);
} else if ((stat & 0xff) != 0xff) { } else if ((stat & 0xff) != 0xff) {
if (stat & 0x0020) { if (stat & 0x0020) {
int stat = bt3c_read(iobase, 0x7002) & 0x10; int status = bt3c_read(iobase, 0x7002) & 0x10;
BT_INFO("%s: Antenna %s", info->hdev->name, BT_INFO("%s: Antenna %s", info->hdev->name,
stat ? "out" : "in"); status ? "out" : "in");
} }
if (stat & 0x0001) if (stat & 0x0001)
bt3c_receive(info); bt3c_receive(info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment