diff mbox series

nptl: futex: Provide correct indentation for part of __futex_abstimed_wait_cancelable64

Message ID 20200908132625.32145-1-lukma@denx.de
State New
Headers show
Series nptl: futex: Provide correct indentation for part of __futex_abstimed_wait_cancelable64 | expand

Commit Message

Lukasz Majewski Sept. 8, 2020, 1:26 p.m. UTC
By mistake the if for calling __futex_abstimed_wait_cancellable32 was
misaligned with the rest of the function body.
---
 sysdeps/nptl/futex-internal.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Adhemerval Zanella Sept. 8, 2020, 2:13 p.m. UTC | #1
On 08/09/2020 10:26, Lukasz Majewski wrote:
> By mistake the if for calling __futex_abstimed_wait_cancellable32 was
> misaligned with the rest of the function body.

LGTM, thanks.

> ---
>  sysdeps/nptl/futex-internal.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/sysdeps/nptl/futex-internal.c b/sysdeps/nptl/futex-internal.c
> index 5e52f17dee..de5a9626e3 100644
> --- a/sysdeps/nptl/futex-internal.c
> +++ b/sysdeps/nptl/futex-internal.c
> @@ -67,9 +67,9 @@ __futex_abstimed_wait_cancelable64 (unsigned int* futex_word,
>                                   abstime, NULL /* Unused.  */,
>                                   FUTEX_BITSET_MATCH_ANY);
>  #ifndef __ASSUME_TIME64_SYSCALLS
> -if (err == -ENOSYS)
> -	err = __futex_abstimed_wait_cancellable32 (futex_word, expected,
> -	                                           clockid, abstime, private);
> +  if (err == -ENOSYS)
> +    err = __futex_abstimed_wait_cancellable32 (futex_word, expected,
> +	                                             clockid, abstime, private);

Align the clockid the the other arguments as well.

>  #endif
>  
>    switch (err)
>
diff mbox series

Patch

diff --git a/sysdeps/nptl/futex-internal.c b/sysdeps/nptl/futex-internal.c
index 5e52f17dee..de5a9626e3 100644
--- a/sysdeps/nptl/futex-internal.c
+++ b/sysdeps/nptl/futex-internal.c
@@ -67,9 +67,9 @@  __futex_abstimed_wait_cancelable64 (unsigned int* futex_word,
                                  abstime, NULL /* Unused.  */,
                                  FUTEX_BITSET_MATCH_ANY);
 #ifndef __ASSUME_TIME64_SYSCALLS
-if (err == -ENOSYS)
-	err = __futex_abstimed_wait_cancellable32 (futex_word, expected,
-	                                           clockid, abstime, private);
+  if (err == -ENOSYS)
+    err = __futex_abstimed_wait_cancellable32 (futex_word, expected,
+	                                             clockid, abstime, private);
 #endif
 
   switch (err)