Re: [Openocd-development] svn code review part 2

2009-12-05 Thread David Brownell
On Thursday 03 September 2009, David Brownell wrote: > Anyone feeling like addressing the rest of these? > > It's code cleanup, by and large... except that "test > floats for equality" bug. The answer was evidently "no". :( I just merged the following patch. == From: David

Re: [Openocd-development] svn code review part 2

2009-09-03 Thread David Brownell
Anyone feeling like addressing the rest of these? It's code cleanup, by and large... except that "test floats for equality" bug. On Monday 24 August 2009, Steve Grubb wrote: > Hello, > > This is my last set of findings from looking through the code in svn. This set > mostly concentrates on vari

Re: [Openocd-development] svn code review part 2

2009-08-29 Thread David Brownell
Steve, Thanks for the code review. Re this one: On Monday 24 August 2009, Steve Grubb wrote: > In src/flash/davinci_nand.c at line 648 we find this code: > >         chip = strtoul(argv[2], &ep, 0); >         if (*ep || chip == 0 || chip == ULONG_MAX) { >                 LOG_ERROR("Invalid NAND

[Openocd-development] svn code review part 2

2009-08-24 Thread Steve Grubb
Hello, This is my last set of findings from looking through the code in svn. This set mostly concentrates on variable tests that are unnecessary or could be copy and paste issues. In src/helper/jim.c at line 6066 we find this code: if (end) { then at 6071, we find this: } else if (!end && inde