提交 8fe73691 编写于 作者: I Ian Abbott 提交者: Greg Kroah-Hartman

staging: comedi: comedi_bond: change return value of bonding_attach()

`bonding_attach()` is the comedi "attach" handler for the driver.  Any
non-negative return value is treated as successful, but 0 is the
preferred return value on success.
Signed-off-by: NIan Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 fcf26cff
...@@ -336,7 +336,7 @@ static int bonding_attach(struct comedi_device *dev, ...@@ -336,7 +336,7 @@ static int bonding_attach(struct comedi_device *dev,
dev->driver->driver_name, dev->board_name, dev->driver->driver_name, dev->board_name,
devpriv->nchans, devpriv->ndevs); devpriv->nchans, devpriv->ndevs);
return 1; return 0;
} }
static void bonding_detach(struct comedi_device *dev) static void bonding_detach(struct comedi_device *dev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册