OSDN Git Service

Staging: bcm: Removes the volatile type definition from Adapter.h
authorKevin McKinney <klmckinney1@gmail.com>
Fri, 18 May 2012 12:50:59 +0000 (08:50 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 May 2012 00:41:16 +0000 (17:41 -0700)
This patch removes the following warning: "Use of
volatile is usually wrong: see
Documentation/volatile-considered-harmful.txt".
There were two variables defined in this manner.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/Adapter.h

index acf7add..95652cb 100644 (file)
@@ -244,7 +244,7 @@ typedef struct _PER_TARANG_DATA {
        struct _MINI_ADAPTER    *Adapter;
        struct sk_buff          *RxAppControlHead;
        struct sk_buff          *RxAppControlTail;
-       volatile int            AppCtrlQueueLen;
+       int                     AppCtrlQueueLen;
        BOOLEAN                 MacTracingEnabled;
        BOOLEAN                 bApplicationToExit;
        S_MIBS_DROPPED_APP_CNTRL_MESSAGES       stDroppedAppCntrlMsgs;
@@ -351,7 +351,7 @@ struct _MINI_ADAPTER {
        u32                     msg_enable;
        CHAR                    *caDsxReqResp;
        atomic_t                ApplicationRunning;
-       volatile int            CtrlQueueLen;
+       int                     CtrlQueueLen;
        atomic_t                AppCtrlQueueLen;
        BOOLEAN                 AppCtrlQueueOverFlow;
        atomic_t                CurrentApplicationCount;