From: Rasmus Villemoes Date: Wed, 5 Jun 2013 17:09:39 +0000 (+0000) Subject: drivers: char: mem: use IS_ERR_VALUE() in memory_lseek() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~75^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71811f3271cd986e223be44830e5961056561ac3;p=pandora-kernel.git drivers: char: mem: use IS_ERR_VALUE() in memory_lseek() Use IS_ERR_VALUE() instead of comparing the new offset to a hard-coded value of -MAX_ERRNO (which is also off-by-one due to the use of ~ instead of -). Signed-off-by: Rasmus Villemoes Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed