diff options
author | Julia Lawall <julia@diku.dk> | 2010-09-05 21:00:24 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-05 16:59:55 -0700 |
commit | d6269644e1f8fc7931c4d6b86d58de7af63a5fc9 (patch) | |
tree | 8c5d9c9ddb581c1ed08bdc4842fca7dd71208ec1 /drivers/staging/cxt1e1 | |
parent | 7b1f6bfb03cca84af40aa9142ddf99ace9894f6e (diff) | |
download | linux-d6269644e1f8fc7931c4d6b86d58de7af63a5fc9.tar.gz linux-d6269644e1f8fc7931c4d6b86d58de7af63a5fc9.tar.bz2 linux-d6269644e1f8fc7931c4d6b86d58de7af63a5fc9.zip |
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/)
// <smpl>
@exists@
identifier f;
constant C;
@@
unsigned f(...)
{ <+...
* return -C;
...+> }
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/cxt1e1')
0 files changed, 0 insertions, 0 deletions