diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-10-21 08:12:49 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 01:44:49 -0500 |
commit | 635c99070600ff04b4c1d5afe67f051631a8397c (patch) | |
tree | 1ce0df0757aeebf58adb202d63a1525ff16abfd6 /arch | |
parent | 5d01410fe4d92081f349b013a2e7a95429e4f2c9 (diff) |
MIPS: Remove useless parentheses
Based on the spatch
@@
expression e;
@@
- return (e);
+ return e;
with heavy hand editing because some of the changes are either whitespace
or identation only or result in excessivly long lines.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/bcm63xx/cpu.c | 2 | ||||
-rw-r--r-- | arch/mips/kernel/cpu-probe.c | 2 | ||||
-rw-r--r-- | arch/mips/kernel/irq-gic.c | 2 | ||||
-rw-r--r-- | arch/mips/kernel/process.c | 36 | ||||
-rw-r--r-- | arch/mips/loongson/common/gpio.c | 2 | ||||
-rw-r--r-- | arch/mips/math-emu/ieee754dp.c | 2 | ||||
-rw-r--r-- | arch/mips/math-emu/ieee754sp.c | 2 | ||||
-rw-r--r-- | arch/mips/mm/sc-r5k.c | 2 | ||||
-rw-r--r-- | arch/mips/pci/ops-bcm63xx.c | 2 | ||||
-rw-r--r-- | arch/mips/pmcs-msp71xx/msp_prom.c | 2 | ||||
-rw-r--r-- | arch/mips/rb532/gpio.c | 2 | ||||
-rw-r--r-- | arch/mips/sgi-ip22/ip22-mc.c | 6 | ||||
-rw-r--r-- | arch/mips/sgi-ip22/ip28-berr.c | 6 | ||||
-rw-r--r-- | arch/mips/sgi-ip27/ip27-klnuma.c | 5 | ||||
-rw-r--r-- | arch/mips/sgi-ip27/ip27-memory.c | 5 | ||||
-rw-r--r-- | arch/mips/sibyte/swarm/rtc_m41t81.c | 4 | ||||
-rw-r--r-- | arch/mips/sibyte/swarm/rtc_xicor1241.c | 4 | ||||
-rw-r--r-- | arch/mips/sibyte/swarm/setup.c | 2 |
18 files changed, 42 insertions, 46 deletions
diff --git a/arch/mips/bcm63xx/cpu.c b/arch/mips/bcm63xx/cpu.c index 536f64443031..307ec8b8e41c 100644 --- a/arch/mips/bcm63xx/cpu.c +++ b/arch/mips/bcm63xx/cpu.c | |||
@@ -263,7 +263,7 @@ static unsigned int detect_memory_size(void) | |||
263 | 263 | ||
264 | if (BCMCPU_IS_6345()) { | 264 | if (BCMCPU_IS_6345()) { |
265 | val = bcm_sdram_readl(SDRAM_MBASE_REG); | 265 | val = bcm_sdram_readl(SDRAM_MBASE_REG); |
266 | return (val * 8 * 1024 * 1024); | 266 | return val * 8 * 1024 * 1024; |
267 | } | 267 | } |
268 | 268 | ||
269 | if (BCMCPU_IS_6338() || BCMCPU_IS_6348()) { | 269 | if (BCMCPU_IS_6338() || BCMCPU_IS_6348()) { |
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index d5a4f380b019..793c86beffa2 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c | |||
@@ -140,7 +140,7 @@ static inline unsigned long cpu_get_fpu_id(void) | |||
140 | */ | 140 | */ |
141 | static inline int __cpu_has_fpu(void) | 141 | static inline int __cpu_has_fpu(void) |
142 | { | 142 | { |
143 | return ((cpu_get_fpu_id() & FPIR_IMP_MASK) != FPIR_IMP_NONE); | 143 | return (cpu_get_fpu_id() & FPIR_IMP_MASK) != FPIR_IMP_NONE; |
144 | } | 144 | } |
145 | 145 | ||
146 | static inline unsigned long cpu_get_msa_id(void) | 146 | static inline unsigned long cpu_get_msa_id(void) |
diff --git a/arch/mips/kernel/irq-gic.c b/arch/mips/kernel/irq-gic.c index 9e9d8b9a5b97..582883069ef6 100644 --- a/arch/mips/kernel/irq-gic.c +++ b/arch/mips/kernel/irq-gic.c | |||
@@ -98,7 +98,7 @@ unsigned int gic_get_timer_pending(void) | |||
98 | 98 | ||
99 | GICWRITE(GIC_REG(VPE_LOCAL, GIC_VPE_OTHER_ADDR), 0); | 99 | GICWRITE(GIC_REG(VPE_LOCAL, GIC_VPE_OTHER_ADDR), 0); |
100 | GICREAD(GIC_REG(VPE_OTHER, GIC_VPE_PEND), vpe_pending); | 100 | GICREAD(GIC_REG(VPE_OTHER, GIC_VPE_PEND), vpe_pending); |
101 | return (vpe_pending & GIC_VPE_PEND_TIMER_MSK); | 101 | return vpe_pending & GIC_VPE_PEND_TIMER_MSK; |
102 | } | 102 | } |
103 | 103 | ||
104 | void gic_bind_eic_interrupt(int irq, int set) | 104 | void gic_bind_eic_interrupt(int irq, int set) |
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index 636b0745d7c7..d0e77b2470cb 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c | |||
@@ -187,21 +187,21 @@ static inline int is_ra_save_ins(union mips_instruction *ip) | |||
187 | */ | 187 | */ |
188 | if (mm_insn_16bit(ip->halfword[0])) { | 188 | if (mm_insn_16bit(ip->halfword[0])) { |
189 | mmi.word = (ip->halfword[0] << 16); | 189 | mmi.word = (ip->halfword[0] << 16); |
190 | return ((mmi.mm16_r5_format.opcode == mm_swsp16_op && | 190 | return (mmi.mm16_r5_format.opcode == mm_swsp16_op && |
191 | mmi.mm16_r5_format.rt == 31) || | 191 | mmi.mm16_r5_format.rt == 31) || |
192 | (mmi.mm16_m_format.opcode == mm_pool16c_op && | 192 | (mmi.mm16_m_format.opcode == mm_pool16c_op && |
193 | mmi.mm16_m_format.func == mm_swm16_op)); | 193 | mmi.mm16_m_format.func == mm_swm16_op); |
194 | } | 194 | } |
195 | else { | 195 | else { |
196 | mmi.halfword[0] = ip->halfword[1]; | 196 | mmi.halfword[0] = ip->halfword[1]; |
197 | mmi.halfword[1] = ip->halfword[0]; | 197 | mmi.halfword[1] = ip->halfword[0]; |
198 | return ((mmi.mm_m_format.opcode == mm_pool32b_op && | 198 | return (mmi.mm_m_format.opcode == mm_pool32b_op && |
199 | mmi.mm_m_format.rd > 9 && | 199 | mmi.mm_m_format.rd > 9 && |
200 | mmi.mm_m_format.base == 29 && | 200 | mmi.mm_m_format.base == 29 && |
201 | mmi.mm_m_format.func == mm_swm32_func) || | 201 | mmi.mm_m_format.func == mm_swm32_func) || |
202 | (mmi.i_format.opcode == mm_sw32_op && | 202 | (mmi.i_format.opcode == mm_sw32_op && |
203 | mmi.i_format.rs == 29 && | 203 | mmi.i_format.rs == 29 && |
204 | mmi.i_format.rt == 31)); | 204 | mmi.i_format.rt == 31); |
205 | } | 205 | } |
206 | #else | 206 | #else |
207 | /* sw / sd $ra, offset($sp) */ | 207 | /* sw / sd $ra, offset($sp) */ |
@@ -233,7 +233,7 @@ static inline int is_jump_ins(union mips_instruction *ip) | |||
233 | if (ip->r_format.opcode != mm_pool32a_op || | 233 | if (ip->r_format.opcode != mm_pool32a_op || |
234 | ip->r_format.func != mm_pool32axf_op) | 234 | ip->r_format.func != mm_pool32axf_op) |
235 | return 0; | 235 | return 0; |
236 | return (((ip->u_format.uimmediate >> 6) & mm_jalr_op) == mm_jalr_op); | 236 | return ((ip->u_format.uimmediate >> 6) & mm_jalr_op) == mm_jalr_op; |
237 | #else | 237 | #else |
238 | if (ip->j_format.opcode == j_op) | 238 | if (ip->j_format.opcode == j_op) |
239 | return 1; | 239 | return 1; |
@@ -260,13 +260,13 @@ static inline int is_sp_move_ins(union mips_instruction *ip) | |||
260 | union mips_instruction mmi; | 260 | union mips_instruction mmi; |
261 | 261 | ||
262 | mmi.word = (ip->halfword[0] << 16); | 262 | mmi.word = (ip->halfword[0] << 16); |
263 | return ((mmi.mm16_r3_format.opcode == mm_pool16d_op && | 263 | return (mmi.mm16_r3_format.opcode == mm_pool16d_op && |
264 | mmi.mm16_r3_format.simmediate && mm_addiusp_func) || | 264 | mmi.mm16_r3_format.simmediate && mm_addiusp_func) || |
265 | (mmi.mm16_r5_format.opcode == mm_pool16d_op && | 265 | (mmi.mm16_r5_format.opcode == mm_pool16d_op && |
266 | mmi.mm16_r5_format.rt == 29)); | 266 | mmi.mm16_r5_format.rt == 29); |
267 | } | 267 | } |
268 | return (ip->mm_i_format.opcode == mm_addiu32_op && | 268 | return ip->mm_i_format.opcode == mm_addiu32_op && |
269 | ip->mm_i_format.rt == 29 && ip->mm_i_format.rs == 29); | 269 | ip->mm_i_format.rt == 29 && ip->mm_i_format.rs == 29; |
270 | #else | 270 | #else |
271 | /* addiu/daddiu sp,sp,-imm */ | 271 | /* addiu/daddiu sp,sp,-imm */ |
272 | if (ip->i_format.rs != 29 || ip->i_format.rt != 29) | 272 | if (ip->i_format.rs != 29 || ip->i_format.rt != 29) |
diff --git a/arch/mips/loongson/common/gpio.c b/arch/mips/loongson/common/gpio.c index 21869908aaa4..29dbaa253061 100644 --- a/arch/mips/loongson/common/gpio.c +++ b/arch/mips/loongson/common/gpio.c | |||
@@ -37,7 +37,7 @@ int gpio_get_value(unsigned gpio) | |||
37 | val = LOONGSON_GPIODATA; | 37 | val = LOONGSON_GPIODATA; |
38 | spin_unlock(&gpio_lock); | 38 | spin_unlock(&gpio_lock); |
39 | 39 | ||
40 | return ((val & mask) != 0); | 40 | return (val & mask) != 0; |
41 | } | 41 | } |
42 | EXPORT_SYMBOL(gpio_get_value); | 42 | EXPORT_SYMBOL(gpio_get_value); |
43 | 43 | ||
diff --git a/arch/mips/math-emu/ieee754dp.c b/arch/mips/math-emu/ieee754dp.c index fd134675fc2e..068f45a415fc 100644 --- a/arch/mips/math-emu/ieee754dp.c +++ b/arch/mips/math-emu/ieee754dp.c | |||
@@ -38,7 +38,7 @@ int ieee754dp_isnan(union ieee754dp x) | |||
38 | static inline int ieee754dp_issnan(union ieee754dp x) | 38 | static inline int ieee754dp_issnan(union ieee754dp x) |
39 | { | 39 | { |
40 | assert(ieee754dp_isnan(x)); | 40 | assert(ieee754dp_isnan(x)); |
41 | return ((DPMANT(x) & DP_MBIT(DP_FBITS-1)) == DP_MBIT(DP_FBITS-1)); | 41 | return (DPMANT(x) & DP_MBIT(DP_FBITS - 1)) == DP_MBIT(DP_FBITS - 1); |
42 | } | 42 | } |
43 | 43 | ||
44 | 44 | ||
diff --git a/arch/mips/math-emu/ieee754sp.c b/arch/mips/math-emu/ieee754sp.c index d348efe91445..ba88301579c2 100644 --- a/arch/mips/math-emu/ieee754sp.c +++ b/arch/mips/math-emu/ieee754sp.c | |||
@@ -38,7 +38,7 @@ int ieee754sp_isnan(union ieee754sp x) | |||
38 | static inline int ieee754sp_issnan(union ieee754sp x) | 38 | static inline int ieee754sp_issnan(union ieee754sp x) |
39 | { | 39 | { |
40 | assert(ieee754sp_isnan(x)); | 40 | assert(ieee754sp_isnan(x)); |
41 | return (SPMANT(x) & SP_MBIT(SP_FBITS-1)); | 41 | return SPMANT(x) & SP_MBIT(SP_FBITS - 1); |
42 | } | 42 | } |
43 | 43 | ||
44 | 44 | ||
diff --git a/arch/mips/mm/sc-r5k.c b/arch/mips/mm/sc-r5k.c index 0216ed6eaa2a..751b5cd18bf2 100644 --- a/arch/mips/mm/sc-r5k.c +++ b/arch/mips/mm/sc-r5k.c | |||
@@ -81,7 +81,7 @@ static inline int __init r5k_sc_probe(void) | |||
81 | unsigned long config = read_c0_config(); | 81 | unsigned long config = read_c0_config(); |
82 | 82 | ||
83 | if (config & CONF_SC) | 83 | if (config & CONF_SC) |
84 | return(0); | 84 | return 0; |
85 | 85 | ||
86 | scache_size = (512 * 1024) << ((config & R5K_CONF_SS) >> 20); | 86 | scache_size = (512 * 1024) << ((config & R5K_CONF_SS) >> 20); |
87 | 87 | ||
diff --git a/arch/mips/pci/ops-bcm63xx.c b/arch/mips/pci/ops-bcm63xx.c index 13eea696bbe7..d02eb9d16b55 100644 --- a/arch/mips/pci/ops-bcm63xx.c +++ b/arch/mips/pci/ops-bcm63xx.c | |||
@@ -469,7 +469,7 @@ static int bcm63xx_pcie_can_access(struct pci_bus *bus, int devfn) | |||
469 | { | 469 | { |
470 | switch (bus->number) { | 470 | switch (bus->number) { |
471 | case PCIE_BUS_BRIDGE: | 471 | case PCIE_BUS_BRIDGE: |
472 | return (PCI_SLOT(devfn) == 0); | 472 | return PCI_SLOT(devfn) == 0; |
473 | case PCIE_BUS_DEVICE: | 473 | case PCIE_BUS_DEVICE: |
474 | if (PCI_SLOT(devfn) == 0) | 474 | if (PCI_SLOT(devfn) == 0) |
475 | return bcm_pcie_readl(PCIE_DLSTATUS_REG) | 475 | return bcm_pcie_readl(PCIE_DLSTATUS_REG) |
diff --git a/arch/mips/pmcs-msp71xx/msp_prom.c b/arch/mips/pmcs-msp71xx/msp_prom.c index 1c9897531660..ef620a4c82a5 100644 --- a/arch/mips/pmcs-msp71xx/msp_prom.c +++ b/arch/mips/pmcs-msp71xx/msp_prom.c | |||
@@ -295,7 +295,7 @@ char *prom_getenv(char *env_name) | |||
295 | 295 | ||
296 | while (*var) { | 296 | while (*var) { |
297 | if (strncmp(env_name, *var, i) == 0) { | 297 | if (strncmp(env_name, *var, i) == 0) { |
298 | return (*var + strlen(env_name) + 1); | 298 | return *var + strlen(env_name) + 1; |
299 | } | 299 | } |
300 | var++; | 300 | var++; |
301 | } | 301 | } |
diff --git a/arch/mips/rb532/gpio.c b/arch/mips/rb532/gpio.c index a18007613c30..5aa3df853082 100644 --- a/arch/mips/rb532/gpio.c +++ b/arch/mips/rb532/gpio.c | |||
@@ -79,7 +79,7 @@ static inline void rb532_set_bit(unsigned bitval, | |||
79 | */ | 79 | */ |
80 | static inline int rb532_get_bit(unsigned offset, void __iomem *ioaddr) | 80 | static inline int rb532_get_bit(unsigned offset, void __iomem *ioaddr) |
81 | { | 81 | { |
82 | return (readl(ioaddr) & (1 << offset)); | 82 | return readl(ioaddr) & (1 << offset); |
83 | } | 83 | } |
84 | 84 | ||
85 | /* | 85 | /* |
diff --git a/arch/mips/sgi-ip22/ip22-mc.c b/arch/mips/sgi-ip22/ip22-mc.c index 7cec0a4e527d..6b009c45abed 100644 --- a/arch/mips/sgi-ip22/ip22-mc.c +++ b/arch/mips/sgi-ip22/ip22-mc.c | |||
@@ -24,14 +24,12 @@ EXPORT_SYMBOL(sgimc); | |||
24 | 24 | ||
25 | static inline unsigned long get_bank_addr(unsigned int memconfig) | 25 | static inline unsigned long get_bank_addr(unsigned int memconfig) |
26 | { | 26 | { |
27 | return ((memconfig & SGIMC_MCONFIG_BASEADDR) << | 27 | return (memconfig & SGIMC_MCONFIG_BASEADDR) << ((sgimc->systemid & SGIMC_SYSID_MASKREV) >= 5 ? 24 : 22); |
28 | ((sgimc->systemid & SGIMC_SYSID_MASKREV) >= 5 ? 24 : 22)); | ||
29 | } | 28 | } |
30 | 29 | ||
31 | static inline unsigned long get_bank_size(unsigned int memconfig) | 30 | static inline unsigned long get_bank_size(unsigned int memconfig) |
32 | { | 31 | { |
33 | return ((memconfig & SGIMC_MCONFIG_RMASK) + 0x0100) << | 32 | return ((memconfig & SGIMC_MCONFIG_RMASK) + 0x0100) << ((sgimc->systemid & SGIMC_SYSID_MASKREV) >= 5 ? 16 : 14); |
34 | ((sgimc->systemid & SGIMC_SYSID_MASKREV) >= 5 ? 16 : 14); | ||
35 | } | 33 | } |
36 | 34 | ||
37 | static inline unsigned int get_bank_config(int bank) | 35 | static inline unsigned int get_bank_config(int bank) |
diff --git a/arch/mips/sgi-ip22/ip28-berr.c b/arch/mips/sgi-ip22/ip28-berr.c index 3f47346608d7..712cc0f6a58d 100644 --- a/arch/mips/sgi-ip22/ip28-berr.c +++ b/arch/mips/sgi-ip22/ip28-berr.c | |||
@@ -338,7 +338,7 @@ static int check_microtlb(u32 hi, u32 lo, unsigned long vaddr) | |||
338 | PHYS_TO_XKSEG_UNCACHED(pte); | 338 | PHYS_TO_XKSEG_UNCACHED(pte); |
339 | a = (a & 0x3f) << 6; /* PFN */ | 339 | a = (a & 0x3f) << 6; /* PFN */ |
340 | a += vaddr & ((1 << pgsz) - 1); | 340 | a += vaddr & ((1 << pgsz) - 1); |
341 | return (cpu_err_addr == a); | 341 | return cpu_err_addr == a; |
342 | } | 342 | } |
343 | } | 343 | } |
344 | } | 344 | } |
@@ -351,7 +351,7 @@ static int check_vdma_memaddr(void) | |||
351 | u32 a = sgimc->maddronly; | 351 | u32 a = sgimc->maddronly; |
352 | 352 | ||
353 | if (!(sgimc->dma_ctrl & 0x100)) /* Xlate-bit clear ? */ | 353 | if (!(sgimc->dma_ctrl & 0x100)) /* Xlate-bit clear ? */ |
354 | return (cpu_err_addr == a); | 354 | return cpu_err_addr == a; |
355 | 355 | ||
356 | if (check_microtlb(sgimc->dtlb_hi0, sgimc->dtlb_lo0, a) || | 356 | if (check_microtlb(sgimc->dtlb_hi0, sgimc->dtlb_lo0, a) || |
357 | check_microtlb(sgimc->dtlb_hi1, sgimc->dtlb_lo1, a) || | 357 | check_microtlb(sgimc->dtlb_hi1, sgimc->dtlb_lo1, a) || |
@@ -367,7 +367,7 @@ static int check_vdma_gioaddr(void) | |||
367 | if (gio_err_stat & GIO_ERRMASK) { | 367 | if (gio_err_stat & GIO_ERRMASK) { |
368 | u32 a = sgimc->gio_dma_trans; | 368 | u32 a = sgimc->gio_dma_trans; |
369 | a = (sgimc->gmaddronly & ~a) | (sgimc->gio_dma_sbits & a); | 369 | a = (sgimc->gmaddronly & ~a) | (sgimc->gio_dma_sbits & a); |
370 | return (gio_err_addr == a); | 370 | return gio_err_addr == a; |
371 | } | 371 | } |
372 | return 0; | 372 | return 0; |
373 | } | 373 | } |
diff --git a/arch/mips/sgi-ip27/ip27-klnuma.c b/arch/mips/sgi-ip27/ip27-klnuma.c index 7a53b1e28a93..ecbb62f339c5 100644 --- a/arch/mips/sgi-ip27/ip27-klnuma.c +++ b/arch/mips/sgi-ip27/ip27-klnuma.c | |||
@@ -125,8 +125,7 @@ unsigned long node_getfirstfree(cnodeid_t cnode) | |||
125 | #endif | 125 | #endif |
126 | offset = PAGE_ALIGN((unsigned long)(&_end)) - loadbase; | 126 | offset = PAGE_ALIGN((unsigned long)(&_end)) - loadbase; |
127 | if ((cnode == 0) || (cpu_isset(cnode, ktext_repmask))) | 127 | if ((cnode == 0) || (cpu_isset(cnode, ktext_repmask))) |
128 | return (TO_NODE(nasid, offset) >> PAGE_SHIFT); | 128 | return TO_NODE(nasid, offset) >> PAGE_SHIFT; |
129 | else | 129 | else |
130 | return (KDM_TO_PHYS(PAGE_ALIGN(SYMMON_STK_ADDR(nasid, 0))) >> | 130 | return KDM_TO_PHYS(PAGE_ALIGN(SYMMON_STK_ADDR(nasid, 0))) >> PAGE_SHIFT; |
131 | PAGE_SHIFT); | ||
132 | } | 131 | } |
diff --git a/arch/mips/sgi-ip27/ip27-memory.c b/arch/mips/sgi-ip27/ip27-memory.c index a304bcc37e4f..0b68469e063f 100644 --- a/arch/mips/sgi-ip27/ip27-memory.c +++ b/arch/mips/sgi-ip27/ip27-memory.c | |||
@@ -42,8 +42,7 @@ static int fine_mode; | |||
42 | 42 | ||
43 | static int is_fine_dirmode(void) | 43 | static int is_fine_dirmode(void) |
44 | { | 44 | { |
45 | return (((LOCAL_HUB_L(NI_STATUS_REV_ID) & NSRI_REGIONSIZE_MASK) | 45 | return ((LOCAL_HUB_L(NI_STATUS_REV_ID) & NSRI_REGIONSIZE_MASK) >> NSRI_REGIONSIZE_SHFT) & REGIONSIZE_FINE; |
46 | >> NSRI_REGIONSIZE_SHFT) & REGIONSIZE_FINE); | ||
47 | } | 46 | } |
48 | 47 | ||
49 | static hubreg_t get_region(cnodeid_t cnode) | 48 | static hubreg_t get_region(cnodeid_t cnode) |
@@ -288,7 +287,7 @@ static unsigned long __init slot_psize_compute(cnodeid_t node, int slot) | |||
288 | if (size <= 128) { | 287 | if (size <= 128) { |
289 | if (slot % 4 == 0) { | 288 | if (slot % 4 == 0) { |
290 | size <<= 20; /* size in bytes */ | 289 | size <<= 20; /* size in bytes */ |
291 | return(size >> PAGE_SHIFT); | 290 | return size >> PAGE_SHIFT; |
292 | } else | 291 | } else |
293 | return 0; | 292 | return 0; |
294 | } else { | 293 | } else { |
diff --git a/arch/mips/sibyte/swarm/rtc_m41t81.c b/arch/mips/sibyte/swarm/rtc_m41t81.c index b732600b47f5..e62466445f08 100644 --- a/arch/mips/sibyte/swarm/rtc_m41t81.c +++ b/arch/mips/sibyte/swarm/rtc_m41t81.c | |||
@@ -109,7 +109,7 @@ static int m41t81_read(uint8_t addr) | |||
109 | return -1; | 109 | return -1; |
110 | } | 110 | } |
111 | 111 | ||
112 | return (__raw_readq(SMB_CSR(R_SMB_DATA)) & 0xff); | 112 | return __raw_readq(SMB_CSR(R_SMB_DATA)) & 0xff; |
113 | } | 113 | } |
114 | 114 | ||
115 | static int m41t81_write(uint8_t addr, int b) | 115 | static int m41t81_write(uint8_t addr, int b) |
@@ -229,5 +229,5 @@ int m41t81_probe(void) | |||
229 | tmp = m41t81_read(M41T81REG_SC); | 229 | tmp = m41t81_read(M41T81REG_SC); |
230 | m41t81_write(M41T81REG_SC, tmp & 0x7f); | 230 | m41t81_write(M41T81REG_SC, tmp & 0x7f); |
231 | 231 | ||
232 | return (m41t81_read(M41T81REG_SC) != -1); | 232 | return m41t81_read(M41T81REG_SC) != -1; |
233 | } | 233 | } |
diff --git a/arch/mips/sibyte/swarm/rtc_xicor1241.c b/arch/mips/sibyte/swarm/rtc_xicor1241.c index 178a824b28d4..50a82c495427 100644 --- a/arch/mips/sibyte/swarm/rtc_xicor1241.c +++ b/arch/mips/sibyte/swarm/rtc_xicor1241.c | |||
@@ -84,7 +84,7 @@ static int xicor_read(uint8_t addr) | |||
84 | return -1; | 84 | return -1; |
85 | } | 85 | } |
86 | 86 | ||
87 | return (__raw_readq(SMB_CSR(R_SMB_DATA)) & 0xff); | 87 | return __raw_readq(SMB_CSR(R_SMB_DATA)) & 0xff; |
88 | } | 88 | } |
89 | 89 | ||
90 | static int xicor_write(uint8_t addr, int b) | 90 | static int xicor_write(uint8_t addr, int b) |
@@ -206,5 +206,5 @@ unsigned long xicor_get_time(void) | |||
206 | 206 | ||
207 | int xicor_probe(void) | 207 | int xicor_probe(void) |
208 | { | 208 | { |
209 | return (xicor_read(X1241REG_SC) != -1); | 209 | return xicor_read(X1241REG_SC) != -1; |
210 | } | 210 | } |
diff --git a/arch/mips/sibyte/swarm/setup.c b/arch/mips/sibyte/swarm/setup.c index 3462c831d0ea..494fb0a475ac 100644 --- a/arch/mips/sibyte/swarm/setup.c +++ b/arch/mips/sibyte/swarm/setup.c | |||
@@ -76,7 +76,7 @@ int swarm_be_handler(struct pt_regs *regs, int is_fixup) | |||
76 | printk("DBE physical address: %010Lx\n", | 76 | printk("DBE physical address: %010Lx\n", |
77 | __read_64bit_c0_register($26, 1)); | 77 | __read_64bit_c0_register($26, 1)); |
78 | } | 78 | } |
79 | return (is_fixup ? MIPS_BE_FIXUP : MIPS_BE_FATAL); | 79 | return is_fixup ? MIPS_BE_FIXUP : MIPS_BE_FATAL; |
80 | } | 80 | } |
81 | 81 | ||
82 | enum swarm_rtc_type { | 82 | enum swarm_rtc_type { |