commit | 9cf075f8656524abc44ad3ff2ec3834fe76f186f | [log] [tgz] |
---|---|---|
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | Wed Dec 28 18:14:49 2011 +0200 |
committer | David Woodhouse <David.Woodhouse@intel.com> | Mon Jan 09 18:25:54 2012 +0000 |
tree | f4d1bc3254b24d3f032134088ba83f9e79a6a01b | |
parent | bea7fe031e5b81629f264f48335f1af74900f4b9 [diff] |
mtd: always initialize retlen to zero Make sure that the retlen is set to 0 in case of error. This harmonizes drivers - some set it to 0 in some error cases and do not write anything in other error cases. Now we can do this consistently for all drivers. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>