2009-04-25 09:28:19

by Ilpo Järvinen

[permalink] [raw]
Subject: staging indentation & braces disagreement list

Hi,

Below is a list from my braces vs indentation pipeline against
staging (mainline 0c8454f56623)... Plenty of add-bracing/reindentation
required but I'm busy elsewhere so I leave it up to somebody who wants
to eyeball the code to see which of the alternatives is the
right one. Please disregard the line numbers, they don't match
with the source because the source was trimmed beforehand.


--
i.

drivers/staging/frontier/tranzport.c
183
if (dev->offline == 2 && dev->interrupt_in_buffer[1] == 0xff)
goto resubmit;
if (dev->offline == 1 && dev->interrupt_in_buffer[1] == 0xff) {
dev->offline = 2;
--
drivers/staging/otus/ioctl.c
242
else
iwe.u.mode = IW_MODE_ADHOC;
current_ev = iwe_stream_add_event(info, current_ev,
end_buf, &iwe, IW_EV_UINT_LEN);
--
drivers/staging/rt2860/common/mlme.c
5159
else
DBGPRINT_RAW(RT_DEBUG_TRACE,("AsicAdjustTxPower (i/j=%d/%d, Value=%d, %d, no change)\n", i, j, Value, AdjustMaxTxPwr[i*8+j]));
TxPwr[i] = (TxPwr[i] & ~(0x0000000F << j*4)) | (Value << j*4);
}
--
drivers/staging/rt2860/common/rtmp_init.c
2650
if (pTimer->State == FALSE)
pTimer->Repeat = FALSE;
RTMP_OS_Del_Timer(&pTimer->TimerObj, pCancelled);
if (*pCancelled == TRUE)
--
drivers/staging/rt2860/rt_profile.c
1202
else
pAd->StaCfg.bTGnWifiTest = TRUE;
DBGPRINT(RT_DEBUG_TRACE, ("TGnWifiTest=%d\n", pAd->StaCfg.bTGnWifiTest));
}
--
drivers/staging/rt2870/common/mlme.c
5111
else
DBGPRINT_RAW(RT_DEBUG_TRACE,("AsicAdjustTxPower (i/j=%d/%d, Value=%d, %d, no change)\n", i, j, Value, AdjustMaxTxPwr[i*8+j]));
TxPwr[i] = (TxPwr[i] & ~(0x0000000F << j*4)) | (Value << j*4);
}
--
drivers/staging/rt2870/common/rtmp_init.c
2837
if (pTimer->State == FALSE)
pTimer->Repeat = FALSE;
RTMP_OS_Del_Timer(&pTimer->TimerObj, pCancelled);
if (*pCancelled == TRUE)
--
drivers/staging/rt2870/common/rtusb_io.c
533
if ((status != NDIS_STATUS_SUCCESS) || (cmdqelmt == NULL))
return (NDIS_STATUS_RESOURCES);
cmdqelmt->buffer = NULL;
if (pInformationBuffer != NULL)
--
drivers/staging/rt2870/rt_profile.c
1206
else
pAd->StaCfg.bTGnWifiTest = TRUE;
DBGPRINT(RT_DEBUG_TRACE, ("TGnWifiTest=%d\n", pAd->StaCfg.bTGnWifiTest));
}
--
drivers/staging/rt3070/common/mlme.c
5366
else
DBGPRINT_RAW(RT_DEBUG_TRACE,("AsicAdjustTxPower (i/j=%d/%d, Value=%d, %d, no change)\n", i, j, Value, AdjustMaxTxPwr[i*8+j]));
TxPwr[i] = (TxPwr[i] & ~(0x0000000F << j*4)) | (Value << j*4);
}
--
drivers/staging/rt3070/common/rtmp_init.c
2916
if (pTimer->State == FALSE)
pTimer->Repeat = FALSE;
RTMP_OS_Del_Timer(&pTimer->TimerObj, pCancelled);
if (*pCancelled == TRUE)
--
drivers/staging/rt3070/common/rtusb_io.c
487
if ((status != NDIS_STATUS_SUCCESS) || (cmdqelmt == NULL))
return (NDIS_STATUS_RESOURCES);
cmdqelmt->buffer = NULL;
if (pInformationBuffer != NULL)
--
drivers/staging/rt3070/rt_profile.c
1207
else
pAd->StaCfg.bTGnWifiTest = TRUE;
DBGPRINT(RT_DEBUG_TRACE, ("TGnWifiTest=%d\n", pAd->StaCfg.bTGnWifiTest));
}
--


2009-04-25 17:51:40

by Greg KH

[permalink] [raw]
Subject: Re: staging indentation & braces disagreement list

On Sat, Apr 25, 2009 at 12:28:06PM +0300, Ilpo J?rvinen wrote:
> Hi,
>
> Below is a list from my braces vs indentation pipeline against
> staging (mainline 0c8454f56623)... Plenty of add-bracing/reindentation
> required but I'm busy elsewhere so I leave it up to somebody who wants
> to eyeball the code to see which of the alternatives is the
> right one. Please disregard the line numbers, they don't match
> with the source because the source was trimmed beforehand.

I wouldn't worry about the majority of these, they are getting replaced
with "real" wireless drivers soon :)

> drivers/staging/frontier/tranzport.c
> 183
> if (dev->offline == 2 && dev->interrupt_in_buffer[1] == 0xff)
> goto resubmit;
> if (dev->offline == 1 && dev->interrupt_in_buffer[1] == 0xff) {
> dev->offline = 2;


this is probably a bug :(

thanks,

greg k-h