提交 81c01c3f 编写于 作者: H H Hartley Sweeten 提交者: Greg Kroah-Hartman

staging: comedi: serial2002: return 0 after successful attach

A return value of >=0 indicates a successful attach to the comedi core.
Return 0 since that is more common in the kernel.
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 83999652
......@@ -806,7 +806,7 @@ static int serial2002_attach(struct comedi_device *dev,
s->range_table = NULL;
s->insn_read = serial2002_encoder_insn_read;
return 1;
return 0;
}
static void serial2002_detach(struct comedi_device *dev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册