This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
RedBoot: remove unnecessary variable reinitialization
- From: David Vrabel <dvrabel at arcom dot com>
- To: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Thu, 21 Apr 2005 10:08:42 +0100
- Subject: RedBoot: remove unnecessary variable reinitialization
Hi,
This trivial one-liner removes a duplicated variable initialization in
zcfree in RedBoot's src/decompress.c.
David Vrabel
--
David Vrabel, Design Engineer
Arcom, Clifton Road Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK Web: http://www.arcom.com/
%status
pending
%patch
Index: packages/redboot/current/ChangeLog
===================================================================
--- packages/redboot/current/ChangeLog.orig 2005-04-13 20:24:00.000000000 +0100
+++ packages/redboot/current/ChangeLog 2005-04-21 10:03:58.000000000 +0100
@@ -1,3 +1,8 @@
+2005-04-21 Ian Campbell <icampbell@arcom.com>
+
+ * src/decompress.c (zcfree): Remove unnecessary variable
+ reinitialisation.
+
2005-04-11 Peter Korsgaard <jacmet@sunsite.dk>
* src/flash.c (find_free): Correctly split chunks in two when
Index: packages/redboot/current/src/decompress.c
===================================================================
--- packages/redboot/current/src/decompress.c.orig 2005-04-20 17:08:25.000000000 +0100
+++ packages/redboot/current/src/decompress.c 2005-04-20 17:29:06.000000000 +0100
@@ -199,7 +199,6 @@
diag_printf("%s(%p) = 0x%x bytes\n", __FUNCTION__, ptr, bp->size);
#endif
- bp = (struct _block *)((char *)ptr - sizeof(struct _block));
while(bp->next && bp->next->magic == 0) {
#ifdef DEBUG_ZLIB_MALLOC
diag_printf(" merging %08p and %08p (after)\n", bp, bp->next);