Commit 13fec56c authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: ni_labpc: remove unnecessary braces in labpc_common_attach()

Correct checkpatch issue "WARNING: braces {} are not necessary for any
arm of this statement".
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bdbb0512
...@@ -1390,11 +1390,10 @@ int labpc_common_attach(struct comedi_device *dev, ...@@ -1390,11 +1390,10 @@ int labpc_common_attach(struct comedi_device *dev,
/* 8255 dio */ /* 8255 dio */
s = &dev->subdevices[2]; s = &dev->subdevices[2];
if (dev->mmio) { if (dev->mmio)
ret = subdev_8255_mm_init(dev, s, NULL, DIO_BASE_REG); ret = subdev_8255_mm_init(dev, s, NULL, DIO_BASE_REG);
} else { else
ret = subdev_8255_init(dev, s, NULL, DIO_BASE_REG); ret = subdev_8255_init(dev, s, NULL, DIO_BASE_REG);
}
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment