Commit 85567f52 authored by Arend van Spriel's avatar Arend van Spriel Committed by Greg Kroah-Hartman

staging: brcm80211: remove volatile keyword used in struct rte_console

Two members vcons_in and vcons_out were declared using the volatile
keyword. However, there is no reason for doing so. The member is
used only to calculate the backplane address to access using offsetof.
This address is passed to subsequent read function. Use of volatile
is not warranted.
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Reviewed-by: default avatarRoland Vossen <rvossen@broadcom.com>
Reviewed-by: default avatarFranky Lin <frankyl@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 277195ac
...@@ -126,8 +126,8 @@ struct rte_console { ...@@ -126,8 +126,8 @@ struct rte_console {
* (at risk of conflicting with * (at risk of conflicting with
* the real UART). vcons_out is currently unused. * the real UART). vcons_out is currently unused.
*/ */
volatile uint vcons_in; uint vcons_in;
volatile uint vcons_out; uint vcons_out;
/* Output (logging) buffer /* Output (logging) buffer
* Console output is written to a ring buffer log_buf at index log_idx. * Console output is written to a ring buffer log_buf at index log_idx.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment