From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Fri, 30 May 2014 15:11:17 -0600 Subject: [U-Boot] [PATCH] mmc: return meaningful error codes from mmc_select_hwpart In-Reply-To: <1400870826-14589-1-git-send-email-swarren@wwwdotorg.org> References: <1400870826-14589-1-git-send-email-swarren@wwwdotorg.org> Message-ID: <5388F3F5.2080907@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/23/2014 12:47 PM, Stephen Warren wrote: > From: Stephen Warren > > Rather than just returning -1 everywhere, try to return something > meaningful from mmc_select_hwpart(). Note that most other MMC functions > don't do this, including functions called from mmc_select_hwpart(), so > I'm not sure how effective this will be. Still, it's one less place with > hard-coded -1. Pantelis, does this look good?