public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* staging indentation & braces disagreement list
@ 2009-04-25  9:28 Ilpo Järvinen
  2009-04-25 17:48 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Ilpo Järvinen @ 2009-04-25  9:28 UTC (permalink / raw)
  To: Greg KH; +Cc: LKML

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));
						}
--

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: staging indentation & braces disagreement list
  2009-04-25  9:28 staging indentation & braces disagreement list Ilpo Järvinen
@ 2009-04-25 17:48 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2009-04-25 17:48 UTC (permalink / raw)
  To: Ilpo Järvinen; +Cc: LKML

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-25 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-25  9:28 staging indentation & braces disagreement list Ilpo Järvinen
2009-04-25 17:48 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox