From: Andy Shevchenko Date: Wed, 7 Jan 2015 20:37:20 +0000 (+0200) Subject: mtd: nftl: reorganize operations in condition check X-Git-Tag: fixes-v4.0-rc1~67^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=768c57c8d7df479aa27330d629b4e41f9c19b22c;p=pandora-kernel.git mtd: nftl: reorganize operations in condition check We need to compare ret variable for negative value. The current code assigns the boolean to the ret and prints it wrongly in the warning message. Reported-by: Andrey Karpov Cc: Giel van Schijndel Cc: Dimitri Gorokhovik Signed-off-by: Andy Shevchenko Signed-off-by: Brian Norris --- Reading git-diff-tree failed