From 13fec56c96b5b81d425c4eba734b02ab0377e5a7 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Tue, 19 Aug 2014 16:06:28 +0100 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- 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 c9c090e15e85..f5e78adf98e8 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.30.2