From mboxrd@z Thu Jan 1 00:00:00 1970 From: Omar Ramirez Luna Subject: [PATCH 01/17] DSPBRIDGE: Remove preproessor condition that could never work Date: Tue, 15 Dec 2009 00:19:42 -0600 Message-ID: <1260857998-19349-2-git-send-email-omar.ramirez@ti.com> References: <1260857998-19349-1-git-send-email-omar.ramirez@ti.com> Return-path: Received: from devils.ext.ti.com ([198.47.26.153]:55095 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751834AbZLOGMv (ORCPT ); Tue, 15 Dec 2009 01:12:51 -0500 In-Reply-To: <1260857998-19349-1-git-send-email-omar.ramirez@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: linux-omap Cc: Hiroshi Doyu , Ameya Palande , Felipe Contreras , Fernando Guzman , Ernesto Ramos , Rebecca Schultz Zavin From: Rebecca Schultz Zavin This macro can refer to a varible not defined in this scope. gcc 4.4 and later will view this as an error and this code will not compile. Signed-off-by: Rebecca Schultz Zavin --- drivers/dsp/bridge/dynload/cload.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/drivers/dsp/bridge/dynload/cload.c b/drivers/dsp/bridge/dynload/cload.c index ef5d7d9..4fead55 100644 --- a/drivers/dsp/bridge/dynload/cload.c +++ b/drivers/dsp/bridge/dynload/cload.c @@ -1475,10 +1475,6 @@ static char *copy_tgt_strings(void *dstp, void *srcp, unsigned charcount) #if TARGET_AU_BITS <= BITS_PER_AU /* byte-swapping issues may exist for strings on target */ *dst++ = *src++; -#elif TARGET_ENDIANNESS_DIFFERS(TARGET_BIG_ENDIAN) - register TgtAU_t tmp; - tmp = *src++; - *dst++ = SWAP16BY8(tmp); /* right for TARGET_AU_BITS == 16 */ #else *dst++ = *src++; #endif @@ -1486,8 +1482,6 @@ static char *copy_tgt_strings(void *dstp, void *srcp, unsigned charcount) /*apply force to make sure that the string table has null terminator */ #if (BITS_PER_AU == BITS_PER_BYTE) && (TARGET_AU_BITS == BITS_PER_BYTE) dst[-1] = 0; -#elif TARGET_BIG_ENDIAN - dst[-1] &= ~BYTE_MASK; /* big-endian */ #else dst[-1] &= (1 << (BITS_PER_AU - BITS_PER_BYTE)) - 1; /* little endian */ #endif -- 1.6.2.4