summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gnu/usr.bin/binutils/gdb/sparc-nat.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gnu/usr.bin/binutils/gdb/sparc-nat.c b/gnu/usr.bin/binutils/gdb/sparc-nat.c
index 4bd7b725384..1a98463d571 100644
--- a/gnu/usr.bin/binutils/gdb/sparc-nat.c
+++ b/gnu/usr.bin/binutils/gdb/sparc-nat.c
@@ -273,11 +273,7 @@ sparc_xfer_wcookie (struct target_ops *ops, enum target_object object,
later). As of release 3.4, OpenBSD doesn't use a randomized
cookie yet, but a future release probably will. */
{
- int pid;
-
- pid = TIDGET (inferior_ptid);
- if (pid == 0)
- pid = PIDGET (inferior_ptid);
+ int pid = PIDGET (inferior_ptid);
/* Sanity check. The proper type for a cookie is register_t, but
we can't assume that this type exists on all systems supported