Skip to contentSkip to conversation

staging: comedi: drivers: pcl816.c remove leading space

PATCH In review Chandra S Gorentla 2 participants 2 messages Jul 20, 2015 – Jul 21, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: comedi: drivers: pcl816.c remove leading space

Checkpatch.pl warning - suspect code indent for conditional statements - is corrected

---
 drivers/staging/comedi/drivers/pcl816.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/comedi/drivers/pcl816.c +1 -1
index 781b321..a353d1b 100644
@@ -305,7 +305,7 @@ static int check_channel_list(struct comedi_device *dev,
 		chansegment[0] = chanlist[0];
 		for (i = 1, seglen = 1; i < chanlen; i++, seglen++) {
 			/*  we detect loop, this must by finish */
-			    if (chanlist[0] == chanlist[i])
+			if (chanlist[0] == chanlist[i])
 				break;
 			nowmustbechan =
 			    (CR_CHAN(chansegment[i - 1]) + 1) % chanlen;
Signature · 1 line
2.4.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Chandra S Gorentla

Checkpatch.pl warning - suspect code indent for conditional statements - is corrected

---
  drivers/staging/comedi/drivers/pcl816.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/comedi/drivers/pcl816.c +0 -0
index 781b321..a353d1b 100644

drivers/staging/comedi/drivers/pcl816.c static int check_channel_list(struct comedi_device *dev, · line 311

Quoted 8 lines
drivers/staging/comedi/drivers/pcl816.c +1 -1
@@ -305,7 +305,7 @@ static int check_channel_list(struct comedi_device *dev,
  		chansegment[0] = chanlist[0];
  		for (i = 1, seglen = 1; i < chanlen; i++, seglen++) {
  			/*  we detect loop, this must by finish */
-			    if (chanlist[0] == chanlist[i])
+			if (chanlist[0] == chanlist[i])
  				break;
  			nowmustbechan =
  			    (CR_CHAN(chansegment[i - 1]) + 1) % chanlen;

Thanks for the correction.

Signature · 2 lines
-=( Ian Abbott @ MEV Ltd.    E-mail: <[email protected]> )=-
-=(                          Web: http://www.mev.co.uk/  )=-