diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2016-09-05 12:24:25 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2016-09-05 12:24:25 +0000 |
commit | 2aa7b71b9966063d412c3c8786a3e3023f63a43c (patch) | |
tree | 87b62f1141969c2dc2be80f451397bfd60fe27b4 /sys/arch | |
parent | e158e8f6b21532f357fec6827c4ed7e0b20b7ec0 (diff) |
No point to jump to an empty return label in a void function.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/armv7/imx/imxesdhc.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/arch/armv7/imx/imxesdhc.c b/sys/arch/armv7/imx/imxesdhc.c index da2c8c76af2..fcf2ce2b6d5 100644 --- a/sys/arch/armv7/imx/imxesdhc.c +++ b/sys/arch/armv7/imx/imxesdhc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxesdhc.c,v 1.32 2016/09/05 11:29:55 mglocker Exp $ */ +/* $OpenBSD: imxesdhc.c,v 1.33 2016/09/05 12:24:24 mglocker Exp $ */ /* * Copyright (c) 2009 Dale Rahn <drahn@openbsd.org> * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -328,7 +328,7 @@ imxesdhc_attach(struct device *parent, struct device *self, void *aux) * Reset the host controller and enable interrupts. */ if (imxesdhc_host_reset(sc)) - goto err; + return; /* Determine host capabilities. */ caps = HREAD4(sc, SDHC_HOST_CTRL_CAP); @@ -445,13 +445,8 @@ imxesdhc_attach(struct device *parent, struct device *self, void *aux) sc->sdmmc = config_found(&sc->sc_dev, &saa, NULL); if (sc->sdmmc == NULL) { error = 0; - goto err; + return; } - - return; - -err: - return; } void |