staging: dgnc: Remove 'volatile' modifier where it is not needed
authorKonrad Zapalowicz <bergo.torino@gmail.com>
Wed, 6 Aug 2014 19:01:26 +0000 (21:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:14 +0000 (12:23 -0700)
This commit fixes the checkpath warning about misused 'volatile'
modifier. In this case the 'volatile' was not needed as it was used
for regular automatic variable. Thos commit removes the 'volatile'.

Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_neo.c

index b4198e0d5f0c2631937c00c504ce0ef520cbf921..86a1cd79daee609932d9a467910c27e1124c368e 100644 (file)
@@ -1640,7 +1640,7 @@ static void neo_copy_data_from_queue_to_uart(struct channel_t *ch)
 
 static void neo_parse_modem(struct channel_t *ch, uchar signals)
 {
-       volatile uchar msignals = signals;
+       uchar msignals = signals;
 
        if (!ch || ch->magic != DGNC_CHANNEL_MAGIC)
                return;