Re: [PATCH 01/02] fixed coding style issue with comments

From: Andi Shyti
Date: Sun Apr 29 2012 - 10:59:14 EST


Hi,

On Sun, Apr 29, 2012 at 06:50:14PM +0530, Jeffrin Jose wrote:
> Fixed coding style issue relating to comments

[...]

> if (crate != rate) {
> snd_printd(KERN_WARNING "current rate %d is different from the runtime rate %d\n", crate, rate);
> - // runtime->rate = crate;
> + /* runtime->rate = crate; */
> }


If you really want ti fix some style issues, you could also split
the snd_printd() line that is over 80 characters.
Moreover, this comment is not really meaningful, I would remove
it at all.

I would prefer something like

- if (create != rate) {
+ if (create != rate)
- snd_printd(KERN_WARNING "current rate %d is different from the runtime rate %d\n", crate, rate);
+ snd_printd(KERN_WARNING
+ "current rate %d is different from runtime rate %d\n",
+ crate, rate);
- // runtime->rate = crate;
- }

Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/