]> Git Repo - J-u-boot.git/commit
mmc: return meaningful error codes from mmc_select_hwpart
authorStephen Warren <[email protected]>
Fri, 23 May 2014 18:47:06 +0000 (12:47 -0600)
committerPantelis Antoniou <[email protected]>
Thu, 12 Jun 2014 11:15:59 +0000 (14:15 +0300)
commitd4622df34280830cfe0678f098d3d9f62e6b5d94
tree0f8331826fab5b370cd0ca2604635236f85d0a5d
parente153b13c8e300236e6d505bea629cc81fd0988cb
mmc: return meaningful error codes from mmc_select_hwpart

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.

Suggested-by: Pantelis Antoniou <[email protected]>
Signed-off-by: Stephen Warren <[email protected]>
Acked-by: Pantelis Antoniou <[email protected]>
drivers/mmc/mmc.c
This page took 0.033969 seconds and 4 git commands to generate.