From: Wolfgang Denk Date: Sun, 17 Feb 2013 21:15:11 +0100 Subject: [U-Boot] [PATCH 08/11] Blackfin: bf60x: add rsi/sdh support In-Reply-To: References: <1360223258-6945-1-git-send-email-sonic.adi@gmail.com> <1360223258-6945-9-git-send-email-sonic.adi@gmail.com> <20130207101742.A06F0200565@gemini.denx.de> Message-ID: <20130217201511.3CCA22005E0@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 Sonic Zhang, In message you wrote: > > >> @@ -113,16 +131,19 @@ static int sdh_setup_data(struct mmc *mmc, struct mmc_data *data) > > ... > >> - int ret = 0; > > ... > >> - return ret; > >> + return 0; > > > > If this function can always only return 0, then please make it void. > > > > Please fix globally. > > I am sorry, this function can't be changed to void, because it may > return error. See bellow code. You are contradicting yourself. You _always_ return a 0 here. Your code CANNOT return an error code. 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 Build a system that even a fool can use and only a fool will want to use it.