Skip to contentSkip to conversation

bluetooth/bt3c: eliminate a sparse warning.

PATCH New Andre Haupt 1 participant 1 message Jan 27, 2009 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bluetooth/bt3c: eliminate a sparse warning.

This eliminates a sparse warning that symbol 'stat' shadows an earlier one.

---
 drivers/bluetooth/bt3c_cs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/bluetooth/bt3c_cs.c +2 -2
index ff195c2..d58e22b 100644
@@ -359,9 +359,9 @@ static irqreturn_t bt3c_interrupt(int irq, void *dev_inst)
 			BT_ERR("Very strange (stat=0x%04x)", stat);
 		} else if ((stat & 0xff) != 0xff) {
 			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,
-							stat ? "out" : "in");
+							status ? "out" : "in");
 			}
 			if (stat & 0x0001)
 				bt3c_receive(info);
Signature · 1 line
1.6.1.213.g28da8