summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2011-10-21 14:17:31 +0000
committerWolfgang Denk <[email protected]>2011-10-27 23:54:02 +0200
commit17f5f1e23fd108d698242ea1bc6c681dc03df73b (patch)
tree46df9f5cebc4644cf2c9d207ccf5ad5485c20c9b
parent2e59cb63ef2bdcb659c77230d1053fbca5b194fc (diff)
GCC4.6: Squash error in cpc45/pd67290.c
pd67290.c: In function 'cirrus_set_opts': pd67290.c:282: error: 'buf' undeclared (first use in this function) pd67290.c:282: error: (Each undeclared identifier is reported only once pd67290.c:282: error: for each function it appears in.) Signed-off-by: Marek Vasut <[email protected]> Cc: Wolfgang Denk <[email protected]> Cc: Simon Glass <[email protected]> Cc: Mike Frysinger <[email protected]>
-rw-r--r--board/cpc45/pd67290.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/board/cpc45/pd67290.c b/board/cpc45/pd67290.c
index 0d8ef233684..815e4bae45b 100644
--- a/board/cpc45/pd67290.c
+++ b/board/cpc45/pd67290.c
@@ -225,11 +225,7 @@ static u_int cirrus_set_opts (socket_info_t * s)
{
cirrus_state_t *p = &s->c_state;
u_int mask = 0xffff;
-#if DEBUG
- char buf[200];
-
- memset (buf, 0, 200);
-#endif
+ char buf[200] = {0};
if (has_ring == -1)
has_ring = 1;