From: Julia Lawall Date: Wed, 27 Oct 2010 22:33:26 +0000 (-0700) Subject: drivers/video/matrox/matroxfb_maven.c: fix unsigned return type X-Git-Tag: v2.6.37-rc1~85^2~108 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=847fb8aca3b79d03ef6c5f87f0843a30ed9e6627;p=pandora-kernel.git drivers/video/matrox/matroxfb_maven.c: fix unsigned return type The function has an unsigned return type, but returns a negative constant to indicate an error condition. The result of calling the function is only tested by comparison to 0, and thus unsigned is not needed and can be dropped from the return type. A sematic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @exists@ identifier f; constant C; @@ unsigned f(...) { <+... * return -C; ...+> } // Signed-off-by: Julia Lawall Cc: Petr Vandrovec Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed