Module Name: src
Committed By: rin
Date: Sat Oct 1 12:27:30 UTC 2022
Modified Files:
src/sys/dev/pci: genfb_pci.c
Log Message:
Remove confusing braces. No binary changes.
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/dev/pci/genfb_pci.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/genfb_pci.c
diff -u src/sys/dev/pci/genfb_pci.c:1.42 src/sys/dev/pci/genfb_pci.c:1.43
--- src/sys/dev/pci/genfb_pci.c:1.42 Sat Oct 1 12:24:19 2022
+++ src/sys/dev/pci/genfb_pci.c Sat Oct 1 12:27:29 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: genfb_pci.c,v 1.42 2022/10/01 12:24:19 rin Exp $ */
+/* $NetBSD: genfb_pci.c,v 1.43 2022/10/01 12:27:29 rin Exp $ */
/*-
* Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb_pci.c,v 1.42 2022/10/01 12:24:19 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb_pci.c,v 1.43 2022/10/01 12:27:29 rin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -212,6 +212,7 @@ pci_genfb_ioctl(void *v, void *vs, u_lon
struct lwp *l)
{
struct pci_genfb_softc *sc = v;
+ int new_mode, i;
switch (cmd) {
case WSDISPLAYIO_GTYPE:
@@ -228,8 +229,8 @@ pci_genfb_ioctl(void *v, void *vs, u_lon
return wsdisplayio_busid_pci(sc->sc_gen.sc_dev, sc->sc_pc,
sc->sc_pcitag, data);
- case WSDISPLAYIO_SMODE: {
- int new_mode = *(int*)data, i;
+ case WSDISPLAYIO_SMODE:
+ new_mode = *(int *)data;
if (new_mode == WSDISPLAYIO_MODE_EMUL) {
for (i = 0; i < 9; i++)
pci_conf_write(sc->sc_pc,
@@ -237,7 +238,6 @@ pci_genfb_ioctl(void *v, void *vs, u_lon
0x10 + (i << 2),
sc->sc_bars[i]);
}
- }
return 0;
}