diff options
author | Simon Sandström <simon@nikanor.nu> | 2019-05-23 15:51:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-24 10:02:38 +0300 |
commit | ec09500e9cb76a278099d32596dae33a48e8ae0b (patch) | |
tree | 769849003a272ce555c469facf320d939cf64706 /drivers | |
parent | 77290d4b7c0d78f73e6af047344f43b01c176321 (diff) | |
download | linux-ec09500e9cb76a278099d32596dae33a48e8ae0b.tar.xz |
staging: kpc2000: remove unnecessary braces in cell_probe.c
Fixes checkpatch.pl warnings "braces {} are not necessary for single
statement blocks".
Signed-off-by: Simon Sandström <simon@nikanor.nu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/kpc2000/kpc2000/cell_probe.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c b/drivers/staging/kpc2000/kpc2000/cell_probe.c index caf48256aa2e..682d61da5369 100644 --- a/drivers/staging/kpc2000/kpc2000/cell_probe.c +++ b/drivers/staging/kpc2000/kpc2000/cell_probe.c @@ -273,11 +273,10 @@ int kuio_irqcontrol(struct uio_info *uioinfo, s32 irq_on) mutex_lock(&pcard->sem); mask = readq(pcard->sysinfo_regs_base + REG_INTERRUPT_MASK); - if (irq_on) { + if (irq_on) mask &= ~(1 << (kudev->cte.irq_base_num)); - } else { + else mask |= (1 << (kudev->cte.irq_base_num)); - } writeq(mask, pcard->sysinfo_regs_base + REG_INTERRUPT_MASK); mutex_unlock(&pcard->sem); @@ -432,12 +431,10 @@ int kp2000_probe_cores(struct kp2000_device *pcard) read_val = readq(pcard->sysinfo_regs_base + ((pcard->core_table_offset + i) * 8)); parse_core_table_entry(&cte, read_val, pcard->core_table_rev); dbg_cte(pcard, &cte); - if (cte.type > highest_core_id) { + if (cte.type > highest_core_id) highest_core_id = cte.type; - } - if (cte.type == KP_CORE_ID_INVALID) { + if (cte.type == KP_CORE_ID_INVALID) dev_info(&pcard->pdev->dev, "Found Invalid core: %016llx\n", read_val); - } } // Then, iterate over the possible core types. for (current_type_id = 1 ; current_type_id <= highest_core_id ; current_type_id++) { |