diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2011-12-28 17:14:49 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-01-09 19:25:54 +0100 |
commit | 9cf075f8656524abc44ad3ff2ec3834fe76f186f (patch) | |
tree | f4d1bc3254b24d3f032134088ba83f9e79a6a01b /drivers/mtd | |
parent | mtd: doc: do not initialize mtd_info fields to 0 or NULL (diff) | |
download | linux-9cf075f8656524abc44ad3ff2ec3834fe76f186f.tar.xz linux-9cf075f8656524abc44ad3ff2ec3834fe76f186f.zip |
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')
0 files changed, 0 insertions, 0 deletions