From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sun, 24 Jun 2012 08:57:06 +0200 Subject: [U-Boot] [PATCH 3/4] imx: Use a clear identification of an unidentified CPU type In-Reply-To: <1340482108-18468-4-git-send-email-otavio@ossystems.com.br> References: <1340482108-18468-1-git-send-email-otavio@ossystems.com.br> <1340482108-18468-4-git-send-email-otavio@ossystems.com.br> Message-ID: <20120624065706.ABD192000ED@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 Otavio Salvador, In message <1340482108-18468-4-git-send-email-otavio@ossystems.com.br> you wrote: > In case an unidentified CPU type is detected it now returns > i.MX, in a const char. ... > -static char *get_imx_type(u32 imxtype) > +static const char *get_imx_type(u32 imxtype) I agree with the const change. > - return "unknown"; > + return ""; But in which way would "" be better than "unknown"? It just costs 7 more bytes of memory... Please drop this change. 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 "Success covers a multitude of blunders." - George Bernard Shaw