OSDN Git Service

staging: comedi: ni_labpc: remove unnecessary braces in labpc_common_attach()
authorIan Abbott <abbotti@mev.co.uk>
Tue, 19 Aug 2014 15:06:28 +0000 (16:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:18:56 +0000 (13:18 -0700)
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>
drivers/staging/comedi/drivers/ni_labpc.c

index c9c090e..f5e78ad 100644 (file)
@@ -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;