diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-02-08 15:37:14 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-03-27 01:32:29 +0200 |
commit | de3cac9357b5aa9f9f02520e5f2567b06f3f75a7 (patch) | |
tree | 4775c9b137c10bdd9b9ed51651e8ff281987f727 /Documentation/memory.txt | |
parent | mtd: move zero length verification to MTD API functions (diff) | |
download | linux-de3cac9357b5aa9f9f02520e5f2567b06f3f75a7.tar.xz linux-de3cac9357b5aa9f9f02520e5f2567b06f3f75a7.zip |
mtd: check for zero length in OTP functions
This patch changes all the OTP functions like 'mtd_get_fact_prot_info()' and
makes them return zero immediately if the input 'len' parameter is 0. This is
not really needed currently, but most of the other functions do this, and it is
just consistent to do the same in the OTP functions.
This patch also moves the OTP functions from the header file to mtdcore.c
because they become a bit too big for being inlined.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'Documentation/memory.txt')
0 files changed, 0 insertions, 0 deletions