diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2022-01-25 15:03:11 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-04 16:45:39 +0100 |
commit | 7163ae1642aecbc90f06e4b646ca711f0ec4d552 (patch) | |
tree | 4a63db0a37ee27f1d3ab2b75b1a42f37c5a8da0d /drivers/char | |
parent | fsi: Aspeed: Fix a potential double free (diff) | |
download | linux-7163ae1642aecbc90f06e4b646ca711f0ec4d552.tar.xz linux-7163ae1642aecbc90f06e4b646ca711f0ec4d552.zip |
hpet: fix style issue about braces and alignment
This patch fix all style issue for braces and alignment
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Link: https://lore.kernel.org/r/20220125140311.4084998-1-clabbe@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/hpet.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index 563dfae3b8da..a8d11251f4b7 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c @@ -268,9 +268,9 @@ static int hpet_open(struct inode *inode, struct file *file) for (devp = NULL, hpetp = hpets; hpetp && !devp; hpetp = hpetp->hp_next) for (i = 0; i < hpetp->hp_ntimer; i++) - if (hpetp->hp_dev[i].hd_flags & HPET_OPEN) + if (hpetp->hp_dev[i].hd_flags & HPET_OPEN) { continue; - else { + } else { devp = &hpetp->hp_dev[i]; break; } @@ -317,9 +317,9 @@ hpet_read(struct file *file, char __user *buf, size_t count, loff_t * ppos) devp->hd_irqdata = 0; spin_unlock_irq(&hpet_lock); - if (data) + if (data) { break; - else if (file->f_flags & O_NONBLOCK) { + } else if (file->f_flags & O_NONBLOCK) { retval = -EAGAIN; goto out; } else if (signal_pending(current)) { @@ -982,7 +982,8 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data) break; irq = acpi_register_gsi(NULL, irqp->interrupts[i], - irqp->triggering, irqp->polarity); + irqp->triggering, + irqp->polarity); if (irq < 0) return AE_ERROR; |