staging: comedi: mite: return void from mite_ack_linkc()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 21 Apr 2016 19:04:45 +0000 (12:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Apr 2016 05:19:49 +0000 (22:19 -0700)
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: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/mite.c
drivers/staging/comedi/drivers/mite.h

index b8cf898870065f2602c57d63097fc752f35c111c..771b51e41498f125b3d8c57d8f714716fcb2356a 100644 (file)
@@ -778,9 +778,9 @@ static unsigned int mite_get_status(struct mite_channel *mite_chan)
        return status;
 }
 
-unsigned int mite_ack_linkc(struct mite_channel *mite_chan,
-                           struct comedi_subdevice *s,
-                           bool sync)
+void mite_ack_linkc(struct mite_channel *mite_chan,
+                   struct comedi_subdevice *s,
+                   bool sync)
 {
        struct mite_struct *mite = mite_chan->mite;
        unsigned int status;
@@ -799,8 +799,6 @@ unsigned int mite_ack_linkc(struct mite_channel *mite_chan,
                        "mite: transfer error %08x\n", status);
                s->async->events |= COMEDI_CB_ERROR;
        }
-
-       return status;
 }
 EXPORT_SYMBOL_GPL(mite_ack_linkc);
 
index bf6128abc464cb6d298f852c80a4168fa8e1d543..96e1380ffed1abaf8238ebe71f975df0814ada25 100644 (file)
@@ -93,8 +93,8 @@ void mite_dma_arm(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);
 u32 mite_bytes_in_transit(struct mite_channel *mite_chan);
-unsigned int mite_ack_linkc(struct mite_channel *, struct comedi_subdevice *,
-                           bool sync);
+void mite_ack_linkc(struct mite_channel *, struct comedi_subdevice *,
+                   bool sync);
 int mite_done(struct mite_channel *mite_chan);
 
 void mite_prep_dma(struct mite_channel *mite_chan,
This page took 0.027881 seconds and 5 git commands to generate.