Message ID | 1319242654-15534-37-git-send-email-marek.vasut@gmail.com |
---|---|
State | Accepted |
Commit | 17f5f1e23fd108d698242ea1bc6c681dc03df73b |
Headers | show |
diff --git a/board/cpc45/pd67290.c b/board/cpc45/pd67290.c index 0d8ef23..815e4ba 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;
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 <marek.vasut@gmail.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Mike Frysinger <vapier@gentoo.org> --- board/cpc45/pd67290.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-)