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/mips/sibyte | |
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/mips/sibyte')
-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 |
3 files changed, 5 insertions, 5 deletions
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 { |