linux/drivers/mmc
Julia Lawall 3b1cac4d9f mmc: usdhi6rol0: fix error return code
Propagate error code on failure.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier ret; expression e1,e2;
@@
(
if (\(ret < 0\|ret != 0\))
 { ... return ret; }
|
ret = 0
)
... when != ret = e1
    when != &ret
*if(...)
{
  ... when != ret = e2
      when forall
 return ret;
}
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2015-08-27 14:50:56 +02:00
..
card mmc: block: skip trim for some kingston eMMCs 2015-08-27 14:50:52 +02:00
core mmc: block: skip trim for some kingston eMMCs 2015-08-27 14:50:52 +02:00
host mmc: usdhi6rol0: fix error return code 2015-08-27 14:50:56 +02:00
Kconfig
Makefile