Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Corentin Labbe and committed by
Greg Kroah-Hartman
7163ae16 83ba7e89

+6 -5
+6 -5
drivers/char/hpet.c
··· 268 268 269 269 for (devp = NULL, hpetp = hpets; hpetp && !devp; hpetp = hpetp->hp_next) 270 270 for (i = 0; i < hpetp->hp_ntimer; i++) 271 - if (hpetp->hp_dev[i].hd_flags & HPET_OPEN) 271 + if (hpetp->hp_dev[i].hd_flags & HPET_OPEN) { 272 272 continue; 273 - else { 273 + } else { 274 274 devp = &hpetp->hp_dev[i]; 275 275 break; 276 276 } ··· 317 317 devp->hd_irqdata = 0; 318 318 spin_unlock_irq(&hpet_lock); 319 319 320 - if (data) 320 + if (data) { 321 321 break; 322 - else if (file->f_flags & O_NONBLOCK) { 322 + } else if (file->f_flags & O_NONBLOCK) { 323 323 retval = -EAGAIN; 324 324 goto out; 325 325 } else if (signal_pending(current)) { ··· 982 982 break; 983 983 984 984 irq = acpi_register_gsi(NULL, irqp->interrupts[i], 985 - irqp->triggering, irqp->polarity); 985 + irqp->triggering, 986 + irqp->polarity); 986 987 if (irq < 0) 987 988 return AE_ERROR; 988 989