diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2016-06-07 01:31:55 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2016-06-07 01:31:55 +0000 |
commit | ba1f69626860142f7ded4737cf681df35b881fbe (patch) | |
tree | bdd025a375c2fcb72c874bac886c2a6b2131b6ea /sys/dev | |
parent | f97aeee421843d0963b2256e41c79950a14d7cd0 (diff) |
per trending style, add continue to empty loops.
ok mglocker
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/hotplug.c | 4 | ||||
-rw-r--r-- | sys/dev/ipmi.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/hotplug.c b/sys/dev/hotplug.c index b0813e8c5d0..30f108ae45b 100644 --- a/sys/dev/hotplug.c +++ b/sys/dev/hotplug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hotplug.c,v 1.15 2015/03/14 03:38:46 jsg Exp $ */ +/* $OpenBSD: hotplug.c,v 1.16 2016/06/07 01:31:54 tedu Exp $ */ /* * Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org> * @@ -134,7 +134,7 @@ hotplugclose(dev_t dev, int flag, int mode, struct proc *p) struct hotplug_event he; while (hotplug_get_event(&he) == 0) - ; + continue; opened = 0; return (0); } diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c index 63973d21aa2..b78d1d43ff6 100644 --- a/sys/dev/ipmi.c +++ b/sys/dev/ipmi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipmi.c,v 1.96 2016/03/27 12:45:47 mpi Exp $ */ +/* $OpenBSD: ipmi.c,v 1.97 2016/06/07 01:31:54 tedu Exp $ */ /* * Copyright (c) 2015 Masao Uebayashi @@ -640,7 +640,7 @@ kcs_wait(struct ipmi_softc *sc, u_int8_t mask, u_int8_t value, const char *lbl) if ((v & KCS_STATE_MASK) == KCS_ERROR_STATE) { bmc_write(sc, _KCS_COMMAND_REGISTER, KCS_GET_STATUS); while (bmc_read(sc, _KCS_STATUS_REGISTER) & KCS_IBF) - ; + continue; printf("%s: error code: %x\n", DEVNAME(sc), bmc_read(sc, _KCS_DATAIN_REGISTER)); } |