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>
This commit is contained in:
@@ -24,14 +24,12 @@ EXPORT_SYMBOL(sgimc);
|
||||
|
||||
static inline unsigned long get_bank_addr(unsigned int memconfig)
|
||||
{
|
||||
return ((memconfig & SGIMC_MCONFIG_BASEADDR) <<
|
||||
((sgimc->systemid & SGIMC_SYSID_MASKREV) >= 5 ? 24 : 22));
|
||||
return (memconfig & SGIMC_MCONFIG_BASEADDR) << ((sgimc->systemid & SGIMC_SYSID_MASKREV) >= 5 ? 24 : 22);
|
||||
}
|
||||
|
||||
static inline unsigned long get_bank_size(unsigned int memconfig)
|
||||
{
|
||||
return ((memconfig & SGIMC_MCONFIG_RMASK) + 0x0100) <<
|
||||
((sgimc->systemid & SGIMC_SYSID_MASKREV) >= 5 ? 16 : 14);
|
||||
return ((memconfig & SGIMC_MCONFIG_RMASK) + 0x0100) << ((sgimc->systemid & SGIMC_SYSID_MASKREV) >= 5 ? 16 : 14);
|
||||
}
|
||||
|
||||
static inline unsigned int get_bank_config(int bank)
|
||||
|
@@ -338,7 +338,7 @@ static int check_microtlb(u32 hi, u32 lo, unsigned long vaddr)
|
||||
PHYS_TO_XKSEG_UNCACHED(pte);
|
||||
a = (a & 0x3f) << 6; /* PFN */
|
||||
a += vaddr & ((1 << pgsz) - 1);
|
||||
return (cpu_err_addr == a);
|
||||
return cpu_err_addr == a;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -351,7 +351,7 @@ static int check_vdma_memaddr(void)
|
||||
u32 a = sgimc->maddronly;
|
||||
|
||||
if (!(sgimc->dma_ctrl & 0x100)) /* Xlate-bit clear ? */
|
||||
return (cpu_err_addr == a);
|
||||
return cpu_err_addr == a;
|
||||
|
||||
if (check_microtlb(sgimc->dtlb_hi0, sgimc->dtlb_lo0, a) ||
|
||||
check_microtlb(sgimc->dtlb_hi1, sgimc->dtlb_lo1, a) ||
|
||||
@@ -367,7 +367,7 @@ static int check_vdma_gioaddr(void)
|
||||
if (gio_err_stat & GIO_ERRMASK) {
|
||||
u32 a = sgimc->gio_dma_trans;
|
||||
a = (sgimc->gmaddronly & ~a) | (sgimc->gio_dma_sbits & a);
|
||||
return (gio_err_addr == a);
|
||||
return gio_err_addr == a;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Fai riferimento in un nuovo problema
Block a user