Skip to content

Commit

Permalink
MIPS: IP32: Remove unnecessary if not even harmful volatile keywords.
Browse files Browse the repository at this point in the history
They are unneeded and as the issue fixed in lmo commit
63f7ec5 shows even harmful.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
ralfbaechle committed May 22, 2009
1 parent 63c901c commit d2f82c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/mips/sgi-ip32/ip32-reset.c
Expand Up @@ -53,7 +53,7 @@ static inline void ip32_machine_halt(void)

static void ip32_machine_power_off(void)
{
volatile unsigned char reg_a, xctrl_a, xctrl_b;
unsigned char reg_a, xctrl_a, xctrl_b;

disable_irq(MACEISA_RTC_IRQ);
reg_a = CMOS_READ(RTC_REG_A);
Expand Down Expand Up @@ -91,7 +91,7 @@ static void blink_timeout(unsigned long data)

static void debounce(unsigned long data)
{
volatile unsigned char reg_a, reg_c, xctrl_a;
unsigned char reg_a, reg_c, xctrl_a;

reg_c = CMOS_READ(RTC_INTR_FLAGS);
reg_a = CMOS_READ(RTC_REG_A);
Expand Down Expand Up @@ -138,7 +138,7 @@ static inline void ip32_power_button(void)

static irqreturn_t ip32_rtc_int(int irq, void *dev_id)
{
volatile unsigned char reg_c;
unsigned char reg_c;

reg_c = CMOS_READ(RTC_INTR_FLAGS);
if (!(reg_c & RTC_IRQF)) {
Expand Down

0 comments on commit d2f82c2

Please sign in to comment.