staging: comedi: Fix checkpatch warning
PATCH v2 1/1 staging: comedi: Fix checkpatch warning
Wrap lines > 80 columns.
This patch is part of eudyptula challenge
Signed-off-by Camille Begue <[email protected]>
--- drivers/staging/comedi/comedi_fops.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/staging/comedi/comedi_fops.c +5 -2
@@ -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
Greg Kroah-Hartman
maintainerQuoted 13 lines · Camille Begue
Wrap lines > 80 columns.
This patch is part of eudyptula challengeSigned-off-by Camille Begue <[email protected]>--- drivers/staging/comedi/comedi_fops.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)drivers/staging/comedi/comedi_fops.c +0
-0
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
Greg Kroah-Hartman
maintainerQuoted 23 lines · Greg Kroah-Hartman
Quoted 13 lines · Camille Begue
Wrap lines > 80 columns.
This patch is part of eudyptula challengeSigned-off-by Camille Begue <[email protected]>--- drivers/staging/comedi/comedi_fops.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)drivers/staging/comedi/comedi_fops.c +0
-0drivers/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...