From: Dan Carpenter Date: Thu, 12 Aug 2010 07:53:52 +0000 (+0200) Subject: mtd/m25p80: retlen is never NULL X-Git-Tag: v2.6.36-rc1~3^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b06cd21e2f0f75686f95afa5b71219b1408f5458;p=pandora-kernel.git mtd/m25p80: retlen is never NULL This is just a cleanup, it doesn't fix any bugs. These functions all check retlen inconsistently and it generates a warning in Smatch (http://smatch.sf.net). If retlen were ever NULL it would cause an oops and the code has been this way since 2006 so someone would have complained. Also I looked at other places that implemented the mtd read and write functions and they dereference retlen without checking. I removed the checks. Signed-off-by: Dan Carpenter Signed-off-by: David Woodhouse --- Reading git-diff-tree failed