staging: comedi: ni_at_a2150: remove 'volatile' from private data variable
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 12 Jan 2015 17:55:46 +0000 (10:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2015 22:25:19 +0000 (14:25 -0800)
As indicated by checkpatch.pl, "WARNING: Use of volatile is usually
wrong: ...", the 'count' member of the private data does not need to
be volatile.

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/ni_at_a2150.c

index 69e543a0bf22276cfa034a9f3ea4688797b67993..8265322d4d4c273434b8dad34990d72f062cf42a 100644 (file)
@@ -146,8 +146,7 @@ static const struct a2150_board a2150_boards[] = {
 };
 
 struct a2150_private {
-
-       volatile unsigned int count;    /* number of data points left to be taken */
+       unsigned int count;     /* number of data points left to be taken */
        unsigned int dma;       /*  dma channel */
        uint16_t *dma_buffer;   /*  dma buffer */
        unsigned int dma_transfer_size; /*  size in bytes of dma transfers */