sparc: Remove unnecessary semicolons
Semicolons are not necessary after switch/while/for/if braces so remove them. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
9eeb08986f
commit
6cb79b3f3b
@@ -123,7 +123,7 @@ static long apc_ioctl(struct file *f, unsigned int cmd, unsigned long __arg)
|
||||
|
||||
default:
|
||||
return -EINVAL;
|
||||
};
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -101,7 +101,7 @@ void set_auxio(unsigned char bits_on, unsigned char bits_off)
|
||||
break;
|
||||
default:
|
||||
panic("Can't set AUXIO register on this machine.");
|
||||
};
|
||||
}
|
||||
spin_unlock_irqrestore(&auxio_lock, flags);
|
||||
}
|
||||
EXPORT_SYMBOL(set_auxio);
|
||||
|
@@ -664,7 +664,7 @@ static void chmc_interpret_one_decode_reg(struct chmc *p, int which_bank, u64 va
|
||||
case 0x0:
|
||||
bp->interleave = 16;
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
/* UK[10] is reserved, and UK[11] is not set for the SDRAM
|
||||
* bank size definition.
|
||||
|
@@ -214,7 +214,7 @@ int apply_relocate_add(Elf_Shdr *sechdrs,
|
||||
me->name,
|
||||
(int) (ELF_R_TYPE(rel[i].r_info) & 0xff));
|
||||
return -ENOEXEC;
|
||||
};
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@@ -281,7 +281,7 @@ static int sun4v_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn,
|
||||
case 4:
|
||||
*value = ret & 0xffffffff;
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
return PCIBIOS_SUCCESSFUL;
|
||||
@@ -456,7 +456,7 @@ void pci_determine_mem_io_space(struct pci_pbm_info *pbm)
|
||||
|
||||
default:
|
||||
break;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
if (!saw_io || !saw_mem) {
|
||||
|
@@ -264,7 +264,7 @@ static void schizo_check_iommu_error_pbm(struct pci_pbm_info *pbm,
|
||||
default:
|
||||
type_string = "ECC Error";
|
||||
break;
|
||||
};
|
||||
}
|
||||
printk("%s: IOMMU Error, type[%s]\n",
|
||||
pbm->name, type_string);
|
||||
|
||||
@@ -319,7 +319,7 @@ static void schizo_check_iommu_error_pbm(struct pci_pbm_info *pbm,
|
||||
default:
|
||||
type_string = "ECC Error";
|
||||
break;
|
||||
};
|
||||
}
|
||||
printk("%s: IOMMU TAG(%d)[error(%s) ctx(%x) wr(%d) str(%d) "
|
||||
"sz(%dK) vpg(%08lx)]\n",
|
||||
pbm->name, i, type_string,
|
||||
@@ -1328,7 +1328,7 @@ static int __devinit schizo_pbm_init(struct pci_pbm_info *pbm,
|
||||
default:
|
||||
chipset_name = "SCHIZO";
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
/* For SCHIZO, three OBP regs:
|
||||
* 1) PBM controller regs
|
||||
|
@@ -694,7 +694,7 @@ static unsigned int sbus_of_build_irq(struct device_node *dp,
|
||||
case 3:
|
||||
iclr = reg_base + SYSIO_ICLR_SLOT3;
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
iclr += ((unsigned long)sbus_level - 1UL) * 8UL;
|
||||
}
|
||||
|
@@ -228,7 +228,7 @@ void psycho_check_iommu_error(struct pci_pbm_info *pbm,
|
||||
default:
|
||||
type_str = "ECC Error";
|
||||
break;
|
||||
};
|
||||
}
|
||||
printk(KERN_ERR "%s: IOMMU Error, type[%s]\n",
|
||||
pbm->name, type_str);
|
||||
|
||||
|
@@ -97,7 +97,7 @@ void sbus_set_sbus64(struct device *dev, int bursts)
|
||||
|
||||
default:
|
||||
return;
|
||||
};
|
||||
}
|
||||
|
||||
val = upa_readq(cfg_reg);
|
||||
if (val & (1UL << 14UL)) {
|
||||
@@ -244,7 +244,7 @@ static unsigned int sbus_build_irq(struct platform_device *op, unsigned int ino)
|
||||
case 3:
|
||||
iclr = reg_base + SYSIO_ICLR_SLOT3;
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
iclr += ((unsigned long)sbus_level - 1UL) * 8UL;
|
||||
}
|
||||
|
@@ -267,7 +267,7 @@ void __init setup_arch(char **cmdline_p)
|
||||
default:
|
||||
printk("UNKNOWN!\n");
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DUMMY_CONSOLE
|
||||
conswitchp = &dummy_con;
|
||||
|
@@ -209,7 +209,7 @@ void __init per_cpu_patch(void)
|
||||
default:
|
||||
prom_printf("Unknown cpu type, halting.\n");
|
||||
prom_halt();
|
||||
};
|
||||
}
|
||||
|
||||
*(unsigned int *) (addr + 0) = insns[0];
|
||||
wmb();
|
||||
|
@@ -114,7 +114,7 @@ void __init smp_cpus_done(unsigned int max_cpus)
|
||||
printk("UNKNOWN!\n");
|
||||
BUG();
|
||||
break;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
void cpu_panic(void)
|
||||
@@ -374,7 +374,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
|
||||
printk("UNKNOWN!\n");
|
||||
BUG();
|
||||
break;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/* Set this up early so that things like the scheduler can init
|
||||
@@ -447,7 +447,7 @@ int __cpuinit __cpu_up(unsigned int cpu)
|
||||
printk("UNKNOWN!\n");
|
||||
BUG();
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
if (!ret) {
|
||||
cpumask_set_cpu(cpu, &smp_commenced_mask);
|
||||
|
@@ -109,7 +109,7 @@ asmlinkage long compat_sys_ipc(u32 call, u32 first, u32 second, u32 third, compa
|
||||
|
||||
default:
|
||||
return -ENOSYS;
|
||||
};
|
||||
}
|
||||
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
@@ -460,7 +460,7 @@ SYSCALL_DEFINE6(sparc_ipc, unsigned int, call, int, first, unsigned long, second
|
||||
default:
|
||||
err = -ENOSYS;
|
||||
goto out;
|
||||
};
|
||||
}
|
||||
}
|
||||
if (call <= MSGCTL) {
|
||||
switch (call) {
|
||||
@@ -481,7 +481,7 @@ SYSCALL_DEFINE6(sparc_ipc, unsigned int, call, int, first, unsigned long, second
|
||||
default:
|
||||
err = -ENOSYS;
|
||||
goto out;
|
||||
};
|
||||
}
|
||||
}
|
||||
if (call <= SHMCTL) {
|
||||
switch (call) {
|
||||
@@ -507,7 +507,7 @@ SYSCALL_DEFINE6(sparc_ipc, unsigned int, call, int, first, unsigned long, second
|
||||
default:
|
||||
err = -ENOSYS;
|
||||
goto out;
|
||||
};
|
||||
}
|
||||
} else {
|
||||
err = -ENOSYS;
|
||||
}
|
||||
|
@@ -708,7 +708,7 @@ static void sparc64_timer_setup(enum clock_event_mode mode,
|
||||
case CLOCK_EVT_MODE_UNUSED:
|
||||
WARN_ON(1);
|
||||
break;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
static struct clock_event_device sparc64_clockevent = {
|
||||
|
@@ -1804,7 +1804,7 @@ static const char *sun4v_err_type_to_str(u32 type)
|
||||
return "warning resumable";
|
||||
default:
|
||||
return "unknown";
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
static void sun4v_log_error(struct pt_regs *regs, struct sun4v_error_entry *ent, int cpu, const char *pfx, atomic_t *ocnt)
|
||||
|
@@ -211,7 +211,7 @@ static inline int do_int_store(int reg_num, int size, unsigned long *dst_addr,
|
||||
default:
|
||||
BUG();
|
||||
break;
|
||||
};
|
||||
}
|
||||
}
|
||||
return __do_int_store(dst_addr, size, src_val, asi);
|
||||
}
|
||||
@@ -328,7 +328,7 @@ asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn)
|
||||
case ASI_SNFL:
|
||||
asi &= ~0x08;
|
||||
break;
|
||||
};
|
||||
}
|
||||
switch (dir) {
|
||||
case load:
|
||||
reg_addr = fetch_reg_addr(((insn>>25)&0x1f), regs);
|
||||
@@ -351,7 +351,7 @@ asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn)
|
||||
default:
|
||||
BUG();
|
||||
break;
|
||||
};
|
||||
}
|
||||
*reg_addr = val_in;
|
||||
}
|
||||
break;
|
||||
|
@@ -176,7 +176,7 @@ static unsigned long index_to_estar_mode(unsigned int index)
|
||||
|
||||
default:
|
||||
BUG();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
static unsigned long index_to_divisor(unsigned int index)
|
||||
@@ -199,7 +199,7 @@ static unsigned long index_to_divisor(unsigned int index)
|
||||
|
||||
default:
|
||||
BUG();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
static unsigned long estar_to_divisor(unsigned long estar)
|
||||
@@ -224,7 +224,7 @@ static unsigned long estar_to_divisor(unsigned long estar)
|
||||
break;
|
||||
default:
|
||||
BUG();
|
||||
};
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@@ -71,7 +71,7 @@ static unsigned long get_current_freq(unsigned int cpu, unsigned long safari_cfg
|
||||
break;
|
||||
default:
|
||||
BUG();
|
||||
};
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -125,7 +125,7 @@ static void us3_set_cpu_divider_index(unsigned int cpu, unsigned int index)
|
||||
|
||||
default:
|
||||
BUG();
|
||||
};
|
||||
}
|
||||
|
||||
reg = read_safari_cfg();
|
||||
|
||||
|
@@ -363,7 +363,7 @@ static int process_ver(struct vio_driver_state *vio, struct vio_ver_info *pkt)
|
||||
|
||||
default:
|
||||
return handshake_failure(vio);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
static int process_attr(struct vio_driver_state *vio, void *pkt)
|
||||
|
@@ -334,7 +334,7 @@ static void edge(struct pt_regs *regs, unsigned int insn, unsigned int opf)
|
||||
left = edge32_tab_l[(rs1 >> 2) & 0x1].left;
|
||||
right = edge32_tab_l[(rs2 >> 2) & 0x1].right;
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
if ((rs1 & ~0x7UL) == (rs2 & ~0x7UL))
|
||||
rd_val = right & left;
|
||||
@@ -360,7 +360,7 @@ static void edge(struct pt_regs *regs, unsigned int insn, unsigned int opf)
|
||||
tstate = regs->tstate & ~(TSTATE_XCC | TSTATE_ICC);
|
||||
regs->tstate = tstate | (ccr << 32UL);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
static void array(struct pt_regs *regs, unsigned int insn, unsigned int opf)
|
||||
@@ -392,7 +392,7 @@ static void array(struct pt_regs *regs, unsigned int insn, unsigned int opf)
|
||||
|
||||
case ARRAY32_OPF:
|
||||
rd_val <<= 2;
|
||||
};
|
||||
}
|
||||
|
||||
store_reg(regs, rd_val, RD(insn));
|
||||
}
|
||||
@@ -577,7 +577,7 @@ static void pformat(struct pt_regs *regs, unsigned int insn, unsigned int opf)
|
||||
*fpd_regaddr(f, RD(insn)) = rd_val;
|
||||
break;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
static void pmul(struct pt_regs *regs, unsigned int insn, unsigned int opf)
|
||||
@@ -693,7 +693,7 @@ static void pmul(struct pt_regs *regs, unsigned int insn, unsigned int opf)
|
||||
*fpd_regaddr(f, RD(insn)) = rd_val;
|
||||
break;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
static void pcmp(struct pt_regs *regs, unsigned int insn, unsigned int opf)
|
||||
@@ -786,7 +786,7 @@ static void pcmp(struct pt_regs *regs, unsigned int insn, unsigned int opf)
|
||||
rd_val |= 1 << i;
|
||||
}
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
maybe_flush_windows(0, 0, RD(insn), 0);
|
||||
store_reg(regs, rd_val, RD(insn));
|
||||
@@ -885,7 +885,7 @@ int vis_emul(struct pt_regs *regs, unsigned int insn)
|
||||
case BSHUFFLE_OPF:
|
||||
bshuffle(regs, insn);
|
||||
break;
|
||||
};
|
||||
}
|
||||
|
||||
regs->tpc = regs->tnpc;
|
||||
regs->tnpc += 4;
|
||||
|
Reference in New Issue
Block a user