bluetooth/bt3c: eliminate a sparse warning
Subsystems (3)
PATCH 1/2 bluetooth/bt3c: eliminate a sparse warning
From: Andre Haupt <[email protected]>
This eliminates a sparse warning that symbol 'stat' shadows an earlier one.
Signed-off-by Andre Haupt <[email protected]>
Cc Marcel Holtmann <[email protected]>
Cc Dave Young <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/bluetooth/bt3c_cs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/bluetooth/bt3c_cs.c renamed from drivers/bluetooth/bt3c_cs.c~bluetooth-bt3c-eliminate-a-sparse-warning +2 -2
@@ -359,9 +359,9 @@ static irqreturn_t bt3c_interrupt(int irBT_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);
_
A message that is not in the archive (sent off-list or not yet received): 200902112128.n1BLSBnP000351-AB4EexQrvXRQetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Hi Andrew,
Quoted 6 lines
This eliminates a sparse warning that symbol 'stat' shadows an earlier one.
Signed-off-by Andre Haupt <[email protected]>Cc Marcel Holtmann <[email protected]>Cc Dave Young <[email protected]>Signed-off-by Andrew Morton <[email protected]>
already part of my bluetooth-testing.git tree.
Regards
Marcel