Browse Source

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: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
H Hartley Sweeten 9 years ago
parent
commit
0c912e5c9c
2 changed files with 5 additions and 7 deletions
  1. 3 5
      drivers/staging/comedi/drivers/mite.c
  2. 2 2
      drivers/staging/comedi/drivers/mite.h

+ 3 - 5
drivers/staging/comedi/drivers/mite.c

@@ -778,9 +778,9 @@ 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,
-			    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;
 	struct mite_struct *mite = mite_chan->mite;
 	unsigned int status;
 	unsigned int status;
@@ -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);
 
 

+ 2 - 2
drivers/staging/comedi/drivers/mite.h

@@ -93,8 +93,8 @@ 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 *,
-			    bool sync);
+void mite_ack_linkc(struct mite_channel *, struct comedi_subdevice *,
+		    bool sync);
 int mite_done(struct mite_channel *mite_chan);
 int mite_done(struct mite_channel *mite_chan);
 
 
 void mite_prep_dma(struct mite_channel *mite_chan,
 void mite_prep_dma(struct mite_channel *mite_chan,