summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2011-02-14 17:24:58 +0000
committerdchagin <dchagin@FreeBSD.org>2011-02-14 17:24:58 +0000
commitefb892cc100e8a809fe7f79921a6df87ee96f75b (patch)
tree8cbca661b608a365d80aabb6729455f465c0bc91
parentd4670ff13ff2a47e6eee17c77ca086182166acf4 (diff)
downloadFreeBSD-src-efb892cc100e8a809fe7f79921a6df87ee96f75b.zip
FreeBSD-src-efb892cc100e8a809fe7f79921a6df87ee96f75b.tar.gz
Style(9) fix. Do not initialize variables in the declarations.
-rw-r--r--sys/compat/linux/linux_futex.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c
index 0b43096..1a55419 100644
--- a/sys/compat/linux/linux_futex.c
+++ b/sys/compat/linux/linux_futex.c
@@ -436,8 +436,8 @@ linux_sys_futex(struct thread *td, struct linux_sys_futex_args *args)
int clockrt, nrwake, op_ret, ret, val;
struct linux_emuldata *em;
struct waiting_proc *wp;
- struct futex *f, *f2 = NULL;
- int error = 0;
+ struct futex *f, *f2;
+ int error;
/*
* Our implementation provides only privates futexes. Most of the apps
@@ -460,6 +460,9 @@ linux_sys_futex(struct thread *td, struct linux_sys_futex_args *args)
args->op != LINUX_FUTEX_WAIT_REQUEUE_PI)
return (ENOSYS);
+ error = 0;
+ f = f2 = NULL;
+
switch (args->op) {
case LINUX_FUTEX_WAIT:
args->val3 = FUTEX_BITSET_MATCH_ANY;
OpenPOWER on IntegriCloud