From: H Hartley Sweeten Date: Wed, 16 Jul 2014 18:22:49 +0000 (-0700) Subject: staging: comedi: das16m1: remove 'volatile' from private data X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e3ebc55f5e55d9298b70c7752bb295ed6d0f6d2a;p=linux-beck.git staging: comedi: das16m1: remove 'volatile' from private data As indicated by checkpatch.pl, "WARNING: Use of volatile is usually wrong: ...". The variables in the private data that are marked volatile don't need to be. Remove the volatile. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/das16m1.c b/drivers/staging/comedi/drivers/das16m1.c index c252ad22b1b4..40365b024b9e 100644 --- a/drivers/staging/comedi/drivers/das16m1.c +++ b/drivers/staging/comedi/drivers/das16m1.c @@ -126,7 +126,7 @@ static const struct comedi_lrange range_das16m1 = { struct das16m1_private_struct { unsigned int control_state; - volatile unsigned int adc_count; /* number of samples completed */ + unsigned int adc_count; /* number of samples completed */ /* initial value in lower half of hardware conversion counter, * needed to keep track of whether new count has been loaded into * counter yet (loaded by first sample conversion) */