From: Artem Bityutskiy Date: Mon, 6 Feb 2012 11:27:43 +0000 (+0200) Subject: mtd: move zero length verification to MTD API functions X-Git-Tag: v3.4-rc1~16^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcb1d238716d138c9e16347fc32b3c1ae006339e;p=pandora-kernel.git mtd: move zero length verification to MTD API functions In many places in drivers we verify for the zero length, but this is very inconsistent across drivers. This is obviously the right thing to do, though. This patch moves the check to the MTD API functions instead and removes a lot of duplication. Signed-off-by: Artem Bityutskiy Reviewed-by: Shmulik Ladkani Signed-off-by: David Woodhouse --- Reading git-diff-tree failed