summaryrefslogtreecommitdiff
path: root/desktop/unx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-21 16:14:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-21 17:05:43 +0000
commit05e99b1c05b4cb96cf3d3c363da3f8631fa84b67 (patch)
tree6f302eb8b719add43773f39476ae1d6a7dd017e6 /desktop/unx
parent9ad08b403be9c6646cda9a379332545c3668975b (diff)
coverity#1399016 Logically dead code
Change-Id: Ib3f0ca4d07dffb568287bcd6a283ab4e529519ff
Diffstat (limited to 'desktop/unx')
-rw-r--r--desktop/unx/source/splashx.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/desktop/unx/source/splashx.c b/desktop/unx/source/splashx.c
index 454755b55ae7..7166738b0936 100644
--- a/desktop/unx/source/splashx.c
+++ b/desktop/unx/source/splashx.c
@@ -307,14 +307,18 @@ static void create_pixmap(struct splash* splash)
}
else if ( bpp == 24 )
{
- if ( machine_byte_order == byte_order && byte_order == LSBFirst )
+ if (machine_byte_order == byte_order)
+ {
+#if defined OSL_LITENDIAN
COPY_IN_OUT( 3, memcpy(out, &pixel, sizeof (color_t)); out += 3; )
- else if ( machine_byte_order == byte_order && byte_order == MSBFirst )
+#else /* OSL_BIGENDIAN */
COPY_IN_OUT( 3, tmp = pixel;
*( (uint8_t *)out ) = *( (uint8_t *)(&tmp) + 1 );
*( (uint8_t *)out + 1 ) = *( (uint8_t *)(&tmp) + 2 );
*( (uint8_t *)out + 2 ) = *( (uint8_t *)(&tmp) + 3 );
out += 3; )
+#endif
+ }
else
COPY_IN_OUT( 3, tmp = pixel;
*( (uint8_t *)out ) = *( (uint8_t *)(&tmp) + 3 );