mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
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: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bdbb051220
commit
13fec56c96
1 changed files with 2 additions and 3 deletions
|
|
@ -1390,11 +1390,10 @@ int labpc_common_attach(struct comedi_device *dev,
|
|||
|
||||
/* 8255 dio */
|
||||
s = &dev->subdevices[2];
|
||||
if (dev->mmio) {
|
||||
if (dev->mmio)
|
||||
ret = subdev_8255_mm_init(dev, s, NULL, DIO_BASE_REG);
|
||||
} else {
|
||||
else
|
||||
ret = subdev_8255_init(dev, s, NULL, DIO_BASE_REG);
|
||||
}
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue