提交 0c912e5c 编写于 作者: H H Hartley Sweeten 提交者: Greg Kroah-Hartman

staging: comedi: mite: return void from mite_ack_linkc()

Currently this function returns the value read from the mite channel
status register. None of the callers use, or need, the returned value.

For aesthetics, change the return to void.
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: NIan Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 f7d005c3
...@@ -778,7 +778,7 @@ static unsigned int mite_get_status(struct mite_channel *mite_chan) ...@@ -778,7 +778,7 @@ static unsigned int mite_get_status(struct mite_channel *mite_chan)
return status; return status;
} }
unsigned int mite_ack_linkc(struct mite_channel *mite_chan, void mite_ack_linkc(struct mite_channel *mite_chan,
struct comedi_subdevice *s, struct comedi_subdevice *s,
bool sync) bool sync)
{ {
...@@ -799,8 +799,6 @@ unsigned int mite_ack_linkc(struct mite_channel *mite_chan, ...@@ -799,8 +799,6 @@ unsigned int mite_ack_linkc(struct mite_channel *mite_chan,
"mite: transfer error %08x\n", status); "mite: transfer error %08x\n", status);
s->async->events |= COMEDI_CB_ERROR; s->async->events |= COMEDI_CB_ERROR;
} }
return status;
} }
EXPORT_SYMBOL_GPL(mite_ack_linkc); EXPORT_SYMBOL_GPL(mite_ack_linkc);
......
...@@ -93,7 +93,7 @@ void mite_dma_arm(struct mite_channel *mite_chan); ...@@ -93,7 +93,7 @@ void mite_dma_arm(struct mite_channel *mite_chan);
void mite_dma_disarm(struct mite_channel *mite_chan); void mite_dma_disarm(struct mite_channel *mite_chan);
void mite_sync_dma(struct mite_channel *mite_chan, struct comedi_subdevice *s); void mite_sync_dma(struct mite_channel *mite_chan, struct comedi_subdevice *s);
u32 mite_bytes_in_transit(struct mite_channel *mite_chan); u32 mite_bytes_in_transit(struct mite_channel *mite_chan);
unsigned int mite_ack_linkc(struct mite_channel *, struct comedi_subdevice *, void mite_ack_linkc(struct mite_channel *, struct comedi_subdevice *,
bool sync); bool sync);
int mite_done(struct mite_channel *mite_chan); int mite_done(struct mite_channel *mite_chan);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册