2fca7dd71208ec1 parent 7b1f6bfb03cca84af40aa9142ddf99ace9894f6e author Julia Lawall 1283713224 +0200 committer Greg Kroah-Hartman 1283731195 -0700 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 Œ!4Mž