* [patch 1/2] bluetooth/bt3c: eliminate a sparse warning
@ 2009-02-11 21:28 akpm
2009-02-12 1:52 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2009-02-11 21:28 UTC (permalink / raw)
To: marcel; +Cc: linux-bluetooth, netdev, akpm, andre, hidave.darkstar
From: Andre Haupt <andre@bitwigglers.org>
This eliminates a sparse warning that symbol 'stat' shadows an earlier one.
Signed-off-by: Andre Haupt <andre@bitwigglers.org>
Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/bluetooth/bt3c_cs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -puN drivers/bluetooth/bt3c_cs.c~bluetooth-bt3c-eliminate-a-sparse-warning drivers/bluetooth/bt3c_cs.c
--- a/drivers/bluetooth/bt3c_cs.c~bluetooth-bt3c-eliminate-a-sparse-warning
+++ a/drivers/bluetooth/bt3c_cs.c
@@ -359,9 +359,9 @@ static irqreturn_t bt3c_interrupt(int ir
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);
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 1/2] bluetooth/bt3c: eliminate a sparse warning
2009-02-11 21:28 [patch 1/2] bluetooth/bt3c: eliminate a sparse warning akpm
@ 2009-02-12 1:52 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2009-02-12 1:52 UTC (permalink / raw)
To: akpm; +Cc: linux-bluetooth, netdev, andre, hidave.darkstar
Hi Andrew,
> This eliminates a sparse warning that symbol 'stat' shadows an earlier one.
>
> Signed-off-by: Andre Haupt <andre@bitwigglers.org>
> Cc: Marcel Holtmann <marcel@holtmann.org>
> Cc: Dave Young <hidave.darkstar@gmail.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
already part of my bluetooth-testing.git tree.
Regards
Marcel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-12 1:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-11 21:28 [patch 1/2] bluetooth/bt3c: eliminate a sparse warning akpm
2009-02-12 1:52 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox