From: Julia Lawall Date: Sun, 5 Sep 2010 19:00:24 +0000 (+0200) Subject: Staging: comedi: Fix unsigned return type X-Git-Tag: v2.6.37-rc1~60^2~3^2~667 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6269644e1f8fc7931c4d6b86d58de7af63a5fc9;p=pandora-kernel.git Staging: comedi: Fix unsigned return type In each case, the function has an unsigned return type, but returns a negative constant to indicate an error condition. For move_block_from_dma, there is only one call and the return value is dropped, so it need not be unsigned. For labpc_eeprom_write, there is only one call and the result is stored in a signed variable, so again the unsigned return type is not necessary. 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed