Staging: bcm: Fixed warning 'braces {} are not necessary for single statement blocks'.
This patch fixes warning: 'braces {} are not necessary for single statement blocks' found by checkpatch.pl in driver bcm. Signed-off-by: Tülin İzer <tulinizer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ec8451372b
commit
3b5ecbab99
1 changed files with 3 additions and 6 deletions
|
@ -203,18 +203,15 @@ static int InterfaceAbortIdlemode(struct bcm_mini_adapter *Adapter, unsigned int
|
||||||
while( timeout > jiffies ) {
|
while( timeout > jiffies ) {
|
||||||
itr++ ;
|
itr++ ;
|
||||||
rdmalt(Adapter, CHIP_ID_REG, &chip_id, sizeof(UINT));
|
rdmalt(Adapter, CHIP_ID_REG, &chip_id, sizeof(UINT));
|
||||||
if(0xbece3200 == (chip_id&~(0xF0))) {
|
if(0xbece3200 == (chip_id&~(0xF0)))
|
||||||
chip_id = chip_id&~(0xF0);
|
chip_id = chip_id&~(0xF0);
|
||||||
}
|
|
||||||
if(chip_id == Adapter->chip_id)
|
if(chip_id == Adapter->chip_id)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(timeout < jiffies ) {
|
if(timeout < jiffies )
|
||||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, IDLE_MODE, DBG_LVL_ALL, "Not able to read chip-id even after 25 msec");
|
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, IDLE_MODE, DBG_LVL_ALL, "Not able to read chip-id even after 25 msec");
|
||||||
}
|
else
|
||||||
else {
|
|
||||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, IDLE_MODE, DBG_LVL_ALL, "Number of completed iteration to read chip-id :%lu", itr);
|
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, IDLE_MODE, DBG_LVL_ALL, "Number of completed iteration to read chip-id :%lu", itr);
|
||||||
}
|
|
||||||
|
|
||||||
status = wrmalt(Adapter, SW_ABORT_IDLEMODE_LOC, &Pattern, sizeof(status));
|
status = wrmalt(Adapter, SW_ABORT_IDLEMODE_LOC, &Pattern, sizeof(status));
|
||||||
if(status) {
|
if(status) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue