projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ce53e2
)
futex: Remove unneeded gotos
author
Jangwoong Kim
<6812skiii@gmail.com>
Wed, 30 Dec 2020 12:29:53 +0000
(21:29 +0900)
committer
Thomas Gleixner
<tglx@linutronix.de>
Thu, 28 Jan 2021 12:20:18 +0000
(13:20 +0100)
Get rid of gotos that do not contain any cleanup. These were not removed in
commit
9180bd467f9a
("futex: Remove put_futex_key()").
Signed-off-by: Jangwoong Kim <6812skiii@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link:
https://lore.kernel.org/r/20201230122953.10473-1-6812skiii@gmail.com
kernel/futex.c
patch
|
blob
|
history
diff --git
a/kernel/futex.c
b/kernel/futex.c
index d0775aab8da96fbc87ca5af4ebc1fbbe7208a7a4..f3570a276990f7dcc2d1d5366661b3885b3b6eea 100644
(file)
--- a/
kernel/futex.c
+++ b/
kernel/futex.c
@@
-3024,7
+3024,7
@@
retry:
* Success, we're done! No tricky corner cases.
*/
if (!ret)
-
goto out_putkey
;
+
return ret
;
/*
* The atomic access to the futex value generated a
* pagefault, so retry the user-access and the wakeup:
@@
-3041,7
+3041,7
@@
retry:
* wake_futex_pi has detected invalid state. Tell user
* space.
*/
-
goto out_putkey
;
+
return ret
;
}
/*
@@
-3062,7
+3062,7
@@
retry:
default:
WARN_ON_ONCE(1);
-
goto out_putkey
;
+
return ret
;
}
}
@@
-3073,7
+3073,6
@@
retry:
out_unlock:
spin_unlock(&hb->lock);
-out_putkey:
return ret;
pi_retry: