From: Artem Bityutskiy Date: Wed, 8 Feb 2012 14:37:14 +0000 (+0200) Subject: mtd: check for zero length in OTP functions X-Git-Tag: v3.4-rc1~16^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de3cac9357b5aa9f9f02520e5f2567b06f3f75a7;p=pandora-kernel.git 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 Signed-off-by: David Woodhouse --- Reading git-diff-tree failed