staging: comedi: cb_pcidas64: remove 'volatile' from set_dac_range_bits() param
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 16 Jul 2014 18:22:47 +0000 (11:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 20:37:59 +0000 (13:37 -0700)
As indicated by checkpatch.pl, "WARNING: Use of volatile is usually
wrong: ...". The 'bits' parameter to this function does not need to
be volatile.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_pcidas64.c

index 781412e11da9f5b96d908805a45b34745a4c9eba..0fd73e7f34c39c39ea4a9cb61bd378e65e8dba2e 100644 (file)
@@ -1180,7 +1180,7 @@ static unsigned int hw_revision(const struct comedi_device *dev,
 }
 
 static void set_dac_range_bits(struct comedi_device *dev,
-                              volatile uint16_t *bits, unsigned int channel,
+                              uint16_t *bits, unsigned int channel,
                               unsigned int range)
 {
        const struct pcidas64_board *thisboard = comedi_board(dev);