diff options
author | phk <phk@FreeBSD.org> | 2003-05-31 21:11:51 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-31 21:11:51 +0000 |
commit | ad5820a3d922c75263a12ed545ebaafd9a9a1e4e (patch) | |
tree | 0152b5e090a998078b923849ea264674c3f31435 | |
parent | 11a69d36a047b1b668dd901c551f5a2817905b27 (diff) | |
download | FreeBSD-src-ad5820a3d922c75263a12ed545ebaafd9a9a1e4e.zip FreeBSD-src-ad5820a3d922c75263a12ed545ebaafd9a9a1e4e.tar.gz |
wrap macro in do {...} while(0)
-rw-r--r-- | sys/dev/atkbdc/psm.c | 4 | ||||
-rw-r--r-- | sys/isa/psm.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/atkbdc/psm.c b/sys/dev/atkbdc/psm.c index daa3744..3361bdd 100644 --- a/sys/dev/atkbdc/psm.c +++ b/sys/dev/atkbdc/psm.c @@ -896,12 +896,12 @@ psmidentify(driver_t *driver, device_t parent) bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1); } -#define endprobe(v) { if (bootverbose) \ +#define endprobe(v) do { if (bootverbose) \ --verbose; \ kbdc_set_device_mask(sc->kbdc, mask); \ kbdc_lock(sc->kbdc, FALSE); \ return (v); \ - } + } while (0) static int psmprobe(device_t dev) diff --git a/sys/isa/psm.c b/sys/isa/psm.c index daa3744..3361bdd 100644 --- a/sys/isa/psm.c +++ b/sys/isa/psm.c @@ -896,12 +896,12 @@ psmidentify(driver_t *driver, device_t parent) bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1); } -#define endprobe(v) { if (bootverbose) \ +#define endprobe(v) do { if (bootverbose) \ --verbose; \ kbdc_set_device_mask(sc->kbdc, mask); \ kbdc_lock(sc->kbdc, FALSE); \ return (v); \ - } + } while (0) static int psmprobe(device_t dev) |