Kaydet (Commit) 05e99b1c authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1399016 Logically dead code

Change-Id: Ib3f0ca4d07dffb568287bcd6a283ab4e529519ff
üst 9ad08b40
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment