summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorArtem Bityutskiy2011-12-28 17:14:49 +0100
committerDavid Woodhouse2012-01-09 19:25:54 +0100
commit9cf075f8656524abc44ad3ff2ec3834fe76f186f (patch)
treef4d1bc3254b24d3f032134088ba83f9e79a6a01b /drivers/mtd
parentmtd: doc: do not initialize mtd_info fields to 0 or NULL (diff)
downloadkernel-qcow2-linux-9cf075f8656524abc44ad3ff2ec3834fe76f186f.tar.gz
kernel-qcow2-linux-9cf075f8656524abc44ad3ff2ec3834fe76f186f.tar.xz
kernel-qcow2-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