diff options
-rw-r--r-- | sys/arch/armv7/exynos/exynos.c | 6 | ||||
-rw-r--r-- | sys/arch/armv7/imx/imx.c | 6 | ||||
-rw-r--r-- | sys/arch/armv7/omap/omap.c | 6 | ||||
-rw-r--r-- | sys/arch/armv7/sunxi/sunxi.c | 6 | ||||
-rw-r--r-- | sys/arch/armv7/vexpress/vexpress.c | 6 |
5 files changed, 10 insertions, 20 deletions
diff --git a/sys/arch/armv7/exynos/exynos.c b/sys/arch/armv7/exynos/exynos.c index 5085746c2e1..25d905e9628 100644 --- a/sys/arch/armv7/exynos/exynos.c +++ b/sys/arch/armv7/exynos/exynos.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exynos.c,v 1.8 2015/07/17 17:33:50 jsg Exp $ */ +/* $OpenBSD: exynos.c,v 1.9 2016/02/02 03:31:22 jsg Exp $ */ /* * Copyright (c) 2005,2008 Dale Rahn <drahn@openbsd.com> * Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se> @@ -164,10 +164,8 @@ exynos_board_name(void) int i; for (i = 0; exynos_boards[i].name != NULL; i++) { - if (exynos_boards[i].board_id == board_id) { + if (exynos_boards[i].board_id == board_id) return (exynos_boards[i].name); - break; - } } return (NULL); } diff --git a/sys/arch/armv7/imx/imx.c b/sys/arch/armv7/imx/imx.c index 6610e7fb66a..0471a215af2 100644 --- a/sys/arch/armv7/imx/imx.c +++ b/sys/arch/armv7/imx/imx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imx.c,v 1.8 2015/05/20 00:14:55 jsg Exp $ */ +/* $OpenBSD: imx.c,v 1.9 2016/02/02 03:31:22 jsg Exp $ */ /* * Copyright (c) 2005,2008 Dale Rahn <drahn@openbsd.com> * Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se> @@ -292,10 +292,8 @@ imx_board_name(void) int i; for (i = 0; imx_boards[i].name != NULL; i++) { - if (imx_boards[i].board_id == board_id) { + if (imx_boards[i].board_id == board_id) return (imx_boards[i].name); - break; - } } return (NULL); } diff --git a/sys/arch/armv7/omap/omap.c b/sys/arch/armv7/omap/omap.c index fc033935942..837ebefa057 100644 --- a/sys/arch/armv7/omap/omap.c +++ b/sys/arch/armv7/omap/omap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: omap.c,v 1.7 2015/05/20 00:14:56 jsg Exp $ */ +/* $OpenBSD: omap.c,v 1.8 2016/02/02 03:31:22 jsg Exp $ */ /* * Copyright (c) 2005,2008 Dale Rahn <drahn@openbsd.com> * @@ -166,10 +166,8 @@ omap_board_name(void) int i; for (i = 0; omap_boards[i].name != NULL; i++) { - if (omap_boards[i].board_id == board_id) { + if (omap_boards[i].board_id == board_id) return (omap_boards[i].name); - break; - } } return (NULL); } diff --git a/sys/arch/armv7/sunxi/sunxi.c b/sys/arch/armv7/sunxi/sunxi.c index ae0fffa58b0..dac03489532 100644 --- a/sys/arch/armv7/sunxi/sunxi.c +++ b/sys/arch/armv7/sunxi/sunxi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sunxi.c,v 1.7 2016/01/31 04:39:05 jsg Exp $ */ +/* $OpenBSD: sunxi.c,v 1.8 2016/02/02 03:31:22 jsg Exp $ */ /* * Copyright (c) 2005,2008 Dale Rahn <drahn@openbsd.com> * @@ -146,10 +146,8 @@ sunxi_board_name(void) int i; for (i = 0; sunxi_boards[i].name != NULL; i++) { - if (sunxi_boards[i].board_id == board_id) { + if (sunxi_boards[i].board_id == board_id) return (sunxi_boards[i].name); - break; - } } return (NULL); } diff --git a/sys/arch/armv7/vexpress/vexpress.c b/sys/arch/armv7/vexpress/vexpress.c index 2064a6b3a12..fcf33f814d4 100644 --- a/sys/arch/armv7/vexpress/vexpress.c +++ b/sys/arch/armv7/vexpress/vexpress.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vexpress.c,v 1.2 2015/06/14 05:01:31 jsg Exp $ */ +/* $OpenBSD: vexpress.c,v 1.3 2016/02/02 03:31:22 jsg Exp $ */ /* * Copyright (c) 2015 Jonathan Gray <jsg@openbsd.org> @@ -96,10 +96,8 @@ vexpress_board_name(void) int i; for (i = 0; vexpress_boards[i].name != NULL; i++) { - if (vexpress_boards[i].board_id == board_id) { + if (vexpress_boards[i].board_id == board_id) return (vexpress_boards[i].name); - break; - } } return (NULL); } |