From 5fbebd2bd509bb0a342d00fe1832fd3433ff8eda Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 25 Jul 2019 00:57:40 +0100 Subject: [PATCH] aux/util: Code style --- src/xrt/auxiliary/util/u_format.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/src/xrt/auxiliary/util/u_format.c b/src/xrt/auxiliary/util/u_format.c index fd07c3155..1ed9731d7 100644 --- a/src/xrt/auxiliary/util/u_format.c +++ b/src/xrt/auxiliary/util/u_format.c @@ -24,9 +24,7 @@ u_format_str(enum xrt_format f) case XRT_FORMAT_YUV888: return "XRT_FORMAT_YUV888"; case XRT_FORMAT_YUV422: return "XRT_FORMAT_YUV422"; case XRT_FORMAT_MJPEG: return "XRT_FORMAT_MJPEG"; - default: - assert(!"unsupported format"); - return 0; + default: assert(!"unsupported format"); return 0; } } @@ -46,9 +44,7 @@ u_format_is_blocks(enum xrt_format f) case XRT_FORMAT_MJPEG: // Compressed return false; - default: - assert(!"unsupported format"); - return 0; + default: assert(!"unsupported format"); return 0; } } @@ -69,9 +65,7 @@ u_format_block_width(enum xrt_format f) case XRT_FORMAT_BITMAP_8X1: // Eight pixels per block. return 8; - default: - assert(!"unsupported format"); - return 0; + default: assert(!"unsupported format"); return 0; } } @@ -90,9 +84,7 @@ u_format_block_height(enum xrt_format f) case XRT_FORMAT_BITMAP_8X8: // Eight pixels high. return 8; - default: - assert(!"unsupported format"); - return 0; + default: assert(!"unsupported format"); return 0; } } @@ -113,9 +105,7 @@ u_format_block_size(enum xrt_format f) return 4; case XRT_FORMAT_BITMAP_8X8: // 64 bits. return 8; - default: - assert(!"unsupported format"); - return 0; + default: assert(!"unsupported format"); return 0; } }