Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81c01c3f authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 83999652
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)