at86rf230: assign wait_for_completion_timeout to appropriately typed var
authorNicholas Mc Guire <hofrat@osadl.org>
Sat, 14 Feb 2015 22:57:48 +0000 (23:57 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 14 Feb 2015 23:08:39 +0000 (00:08 +0100)
return type of wait_for_completion_timeout is unsigned long not int.
As rc is used here only for wait_for_completion_timeout the type is simply
changed to unsigned long.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c

index 7b051eacb7f184a3770294b5b0d7d60aae5fbe2d..cbfc8c5b6a343761c6934ca8f1962da6b067f3bc 100644 (file)
@@ -689,7 +689,7 @@ at86rf230_sync_state_change_complete(void *context)
 static int
 at86rf230_sync_state_change(struct at86rf230_local *lp, unsigned int state)
 {
-       int rc;
+       unsigned long rc;
 
        at86rf230_async_state_change(lp, &lp->state, state,
                                     at86rf230_sync_state_change_complete,
This page took 0.026505 seconds and 5 git commands to generate.