All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ][Patch] fix coding style in fscpos.c
@ 2006-02-22 12:35 Darren Jenkins\
  2006-02-22 21:02 ` Jean Delvare
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Darren Jenkins\ @ 2006-02-22 12:35 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 753 bytes --]

G'day list,

Here is a simple one I noticed.

The CodingStyle document says 
"Don't put multiple statements on a single line unless you have
something to hide:"

The patch below is a very simple change to convert to requisite coding
style.

Signed-off-by: Darren Jenkins <darrenrjenkins@gmail.com>
--- linux-2.6.16-rc3/drivers/hwmon/fscpos.c.orig	2006-02-22 23:14:39.000000000 +1100
+++ linux-2.6.16-rc3/drivers/hwmon/fscpos.c	2006-02-22 23:22:37.000000000 +1100
@@ -229,8 +229,10 @@ static ssize_t set_pwm(struct i2c_client
 	unsigned long v = simple_strtoul(buf, NULL, 10);
 
 	/* Range: 0..255 */
-	if (v < 0) v = 0;
-	if (v > 255) v = 255;
+	if (v < 0) 
+		v = 0;
+	if (v > 255) 
+		v = 255;
 
 	down(&data->update_lock);
 	data->pwm[nr - 1] = v;



[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

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

end of thread, other threads:[~2006-02-23 18:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-22 12:35 [KJ][Patch] fix coding style in fscpos.c Darren Jenkins\
2006-02-22 21:02 ` Jean Delvare
2006-02-22 23:12 ` Adrian Bunk
2006-02-23  8:57 ` Jean Delvare
2006-02-23 17:45 ` Greg KH
2006-02-23 17:58 ` Randy.Dunlap
2006-02-23 18:06 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.