Skip to contentSkip to conversation

staging: comedi: Fix checkpatch warning

PATCH Superseded Camille Begue 2 participants 3 messages Apr 4, 2014 – Apr 5, 2014 Staging

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: comedi: Fix checkpatch warning

Wrap lines > 80 columns.
This patch is part of eudyptula challenge

---
 drivers/staging/comedi/comedi_fops.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/staging/comedi/comedi_fops.c +5 -2
index ea6dc36..0f05e87 100644
@@ -1435,13 +1435,16 @@ static int __comedi_get_user_cmd(struct comedi_device *dev,
 	s = &dev->subdevices[cmd->subdev];
 
 	if (s->type == COMEDI_SUBD_UNUSED) {
-		dev_dbg(dev->class_dev, "%d not valid subdevice\n", cmd->subdev);
+		dev_dbg(dev->class_dev,
+			"%d not valid subdevice\n",
+			cmd->subdev);
 		return -EIO;
 	}
 
 	if (!s->do_cmd || !s->do_cmdtest || !s->async) {
 		dev_dbg(dev->class_dev,
-			"subdevice %d does not support commands\n", cmd->subdev);
+			"subdevice %d does not support commands\n",
+			cmd->subdev);
 		return -EIO;
 	}
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 13 lines · Camille Begue

Wrap lines > 80 columns.
This patch is part of eudyptula challenge

---
 drivers/staging/comedi/comedi_fops.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/staging/comedi/comedi_fops.c +0 -0
index ea6dc36..0f05e87 100644

drivers/staging/comedi/comedi_fops.c static int __comedi_get_user_cmd(struct comedi_device *dev, · line 1440

Quoted 7 lines
drivers/staging/comedi/comedi_fops.c +3 -1
@@ -1435,13 +1435,16 @@ static int __comedi_get_user_cmd(struct comedi_device *dev,
 	s = &dev->subdevices[cmd->subdev];
 
 	if (s->type == COMEDI_SUBD_UNUSED) {
-		dev_dbg(dev->class_dev, "%d not valid subdevice\n", cmd->subdev);
+		dev_dbg(dev->class_dev,
+			"%d not valid subdevice\n",
+			cmd->subdev);

Why did you split this into 3 lines, it only needs to be 2 like this:

		dev_dbg(dev->class_dev, "%d not valid subdevice\n",
			cmd->subdev);

thanks,

greg k-h

#2 lore raw
Quoted 23 lines · Greg Kroah-Hartman
Quoted 13 lines · Camille Begue

Wrap lines > 80 columns.
This patch is part of eudyptula challenge

---
 drivers/staging/comedi/comedi_fops.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/staging/comedi/comedi_fops.c +0 -0
index ea6dc36..0f05e87 100644

drivers/staging/comedi/comedi_fops.c static int __comedi_get_user_cmd(struct comedi_device *dev, · line 1440

Quoted 7 lines
drivers/staging/comedi/comedi_fops.c +3 -1
@@ -1435,13 +1435,16 @@ static int __comedi_get_user_cmd(struct comedi_device *dev,
 	s = &dev->subdevices[cmd->subdev];
 
 	if (s->type == COMEDI_SUBD_UNUSED) {
-		dev_dbg(dev->class_dev, "%d not valid subdevice\n", cmd->subdev);
+		dev_dbg(dev->class_dev,
+			"%d not valid subdevice\n",
+			cmd->subdev);

Why did you split this into 3 lines, it only needs to be 2 like this:

Quoted 2 lines
		dev_dbg(dev->class_dev, "%d not valid subdevice\n",
			cmd->subdev);

Nevermind, you fixed it up later...