summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2011-10-21 14:17:30 +0000
committerWolfgang Denk <wd@denx.de>2011-10-27 23:54:05 +0200
commit66d1a2e3bb2512c48261bc08452f9866468b7d9a (patch)
tree148f5cb9705e73c2e9119d36296bc4c5f0ee1be5 /drivers
parent3ebafbf697914b6a6f273af1eaa783fc07896de5 (diff)
GCC4.6: Squash error in pcmcia/i82365.c
i82365.c: In function 'cirrus_set_opts': i82365.c:329: error: 'buf' undeclared (first use in this function) i82365.c:329: error: (Each undeclared identifier is reported only once i82365.c:329: 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pcmcia/i82365.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/pcmcia/i82365.c b/drivers/pcmcia/i82365.c
index 1bcb3a52eb..1cde83a763 100644
--- a/drivers/pcmcia/i82365.c
+++ b/drivers/pcmcia/i82365.c
@@ -272,11 +272,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;