From: Wolfgang Denk Date: Wed, 16 Feb 2011 22:06:46 +0100 Subject: [U-Boot] [PATCH 2/2] cmd_sf: Add handler for +len arg for erase command. In-Reply-To: <1297888074-8344-3-git-send-email-RichardRetanubun@RuggedCom.com> References: <201102150434.39422.vapier@gentoo.org> <1297888074-8344-3-git-send-email-RichardRetanubun@RuggedCom.com> Message-ID: <20110216210646.567AA126DB5@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Richard Retanubun, In message <1297888074-8344-3-git-send-email-RichardRetanubun@RuggedCom.com> you wrote: > This patch adds [+]len handler for the erase command that will > automatically round up the requested erase length to the flash's > sector_size. > --- > common/cmd_sf.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++---- > 1 files changed, 49 insertions(+), 4 deletions(-) Please run your patches through checkpatch - this helps avoiding the frustration of seeing rejects due to simple issues like these: ERROR: Missing Signed-off-by: line(s) > + if (*arg == '+'){ ERROR: space required before the open brace '{' > + if (ret != 1) { > goto usage; > + } WARNING: braces {} are not necessary for single statement blocks Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de All these theories, diverse as they are, have two things in common: they explain the observed facts, and they are completeley and utterly wrong. - Terry Pratchett, _The Light Fantastic_