Correct checkpatch issue "WARNING: braces {} are not necessary for any
arm of this statement".

Signed-off-by: Ian Abbott <abbo...@mev.co.uk>
---
 drivers/staging/comedi/drivers/ni_labpc.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/comedi/drivers/ni_labpc.c 
b/drivers/staging/comedi/drivers/ni_labpc.c
index c9c090e..f5e78ad 100644
--- a/drivers/staging/comedi/drivers/ni_labpc.c
+++ b/drivers/staging/comedi/drivers/ni_labpc.c
@@ -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;
 
-- 
2.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to