From: Andy Shevchenko on 10 May 2010 03:00 On Sun, May 9, 2010 at 8:12 PM, Prashant P. Shah <pshah.mumbai(a)gmail.com> wrote: > This is a patch to the wl_profile.c file that fixes the C99 comments > style issues found by the checkpatch.pl tool. > > Signed-off-by: Prashant P. Shah <pshah.mumbai(a)gmail.com> > --- > drivers/staging/wlags49_h2/wl_profile.c | 54 +++++++++++++++--------------- > 1 files changed, 27 insertions(+), 27 deletions(-) > > diff --git a/drivers/staging/wlags49_h2/wl_profile.c b/drivers/staging/wlags49_h2/wl_profile.c > index 13ade70..4a3b64d 100644 > --- a/drivers/staging/wlags49_h2/wl_profile.c > +++ b/drivers/staging/wlags49_h2/wl_profile.c .... > @@ -118,17 +118,17 @@ int parse_yes_no(char *value); > > int parse_yes_no(char *value) > { > -int rc = 0; //default to NO for invalid parameters > +int rc = 0; /* default to NO for invalid parameters */ > > if (strlen(value) == 1) { > if ((value[0] | ('Y'^'y')) == 'y') > rc = 1; > -// } else { > -// this should not be debug time info, it is an enduser data entry error ;? > -// DBG_WARNING(DbgInfo, "%s invalid; will be ignored\n", PARM_NAME_MICROWAVE_ROBUSTNESS); > +/* } else { > + this should not be debug time info, it is an enduser data entry error ;? > + DBG_WARNING(DbgInfo, "%s invalid; will be ignored\n", PARM_NAME_MICROWAVE_ROBUSTNESS); */ In such case you have lost the internal comments. I think it should look like /* } else { /* ... */ .... */ > } > return rc; > -} // parse_yes_no > +} /* parse_yes_no */ > > > /******************************************************************************* -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Prashant Shah on 10 May 2010 13:00 Hi, >> -// � � } else { >> -// � � � � � � this should not be debug time info, it is an enduser data entry error ;? >> -// � � � � � � DBG_WARNING(DbgInfo, "%s invalid; will be ignored\n", PARM_NAME_MICROWAVE_ROBUSTNESS); >> +/* � � } else { >> + � � � � � � � this should not be debug time info, it is an enduser data entry error ;? >> + � � � � � � � DBG_WARNING(DbgInfo, "%s invalid; will be ignored\n", PARM_NAME_MICROWAVE_ROBUSTNESS); */ > In such case you have lost the internal comments. I think it should look like > /* > } else { > /* ... */ Sent a new patch. I tried the nested comments but gcc wont handle it correctly (maybe I am wrong here). Please discard the old patch and use this new one. -// } else { -// this should not be debug time info, it is an enduser data entry error ;? -// DBG_WARNING(DbgInfo, "%s invalid; will be ignored\n", PARM_NAME_MICROWAVE_ROBUSTNESS); + /* } else { */ + /* this should not be debug time info, it is an enduser data entry error ;? */ + /* DBG_WARNING(DbgInfo, "%s invalid; will be ignored\n", PARM_NAME_MICROWAVE_ROBUSTNESS); */ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: lmb: Add lmb_memory_size() Next: [tip:perf/core] perf/live-mode: Handle payload-less events |