From: Wolfgang Denk Date: Fri, 31 Oct 2014 07:08:46 +0100 Subject: [U-Boot] [v2 PATCH 10/12] arm, spl, at91: add at91sam9260 and at91sam9g45 spl support In-Reply-To: <5452EAD4.7080903@atmel.com> References: <1414656906-16632-1-git-send-email-hs@denx.de> <1414656906-16632-11-git-send-email-hs@denx.de> <5452EAD4.7080903@atmel.com> Message-ID: <20141031060846.355A1382237@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 Bo Shen, In message <5452EAD4.7080903@atmel.com> you wrote: > > I am thinking, whether it be better to keep this file as two copy? This > will remove #ifdef, although a little code duplication. I agree that we should try and minimize #ifdef's, but code duplication is even worse. 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 The explanation requiring the fewest assumptions is the most likely to be correct. -- William of Occam