From: Gujulan Elango, Hari Prasath (H.) Date: Thu, 23 Apr 2015 19:14:21 +0000 (+0000) Subject: staging: comedi: Remove unwanted lines of code X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e6f2804d580667515cee34812aa92e84cc142e55;p=openwrt%2Fstaging%2Fblogic.git staging: comedi: Remove unwanted lines of code This patch removes a few lines of code & retains the same functionality Signed-off-by: Hari Prasath Gujulan Elango Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/cb_pcimdda.c b/drivers/staging/comedi/drivers/cb_pcimdda.c index a4781dbbdd82..19210d89f2b2 100644 --- a/drivers/staging/comedi/drivers/cb_pcimdda.c +++ b/drivers/staging/comedi/drivers/cb_pcimdda.c @@ -164,11 +164,7 @@ static int cb_pcimdda_auto_attach(struct comedi_device *dev, s = &dev->subdevices[1]; /* digital i/o subdevice */ - ret = subdev_8255_init(dev, s, NULL, PCIMDDA_8255_BASE_REG); - if (ret) - return ret; - - return 0; + return subdev_8255_init(dev, s, NULL, PCIMDDA_8255_BASE_REG); } static struct comedi_driver cb_pcimdda_driver = {