diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2011-12-28 18:14:49 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-01-09 18:25:54 +0000 |
commit | 9cf075f8656524abc44ad3ff2ec3834fe76f186f (patch) | |
tree | f4d1bc3254b24d3f032134088ba83f9e79a6a01b /drivers/mtd/tests/mtd_stresstest.c | |
parent | bea7fe031e5b81629f264f48335f1af74900f4b9 (diff) | |
download | op-kernel-dev-9cf075f8656524abc44ad3ff2ec3834fe76f186f.zip op-kernel-dev-9cf075f8656524abc44ad3ff2ec3834fe76f186f.tar.gz |
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>
Diffstat (limited to 'drivers/mtd/tests/mtd_stresstest.c')
0 files changed, 0 insertions, 0 deletions