summaryrefslogtreecommitdiff
path: root/libpthread/nptl
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl')
-rw-r--r--libpthread/nptl/sem_open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/nptl/sem_open.c b/libpthread/nptl/sem_open.c
index 2746da1b7..8c99d6dbe 100644
--- a/libpthread/nptl/sem_open.c
+++ b/libpthread/nptl/sem_open.c
@@ -147,11 +147,11 @@ __sem_search (const void *a, const void *b)
if (as->ino != bs->ino)
/* Cannot return the difference the type is larger than int. */
- return as->ino < bs->ino ? -1 : (as->ino == bs->ino ? 0 : 1);
+ return as->ino < bs->ino ? -1 : 1;
if (as->dev != bs->dev)
/* Cannot return the difference the type is larger than int. */
- return as->dev < bs->dev ? -1 : (as->dev == bs->dev ? 0 : 1);
+ return as->dev < bs->dev ? -1 : 1;
return strcmp (as->name, bs->name);
}