]> granicus.if.org Git - python/commit
bpo-31653: Remove deadcode in semlock_acquire() (#4091)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 23 Oct 2017 20:57:51 +0000 (13:57 -0700)
committerGitHub <noreply@github.com>
Mon, 23 Oct 2017 20:57:51 +0000 (13:57 -0700)
commit828ca59208af0b1b52a328676c5cc0c5e2e999b0
tree3fdd4425ec0281a14eb3e216bb826785c7593688
parent62adc55aff0b78447568f73bd1abc610d2784bf8
bpo-31653: Remove deadcode in semlock_acquire() (#4091)

Fix the following Coverity warning:

>>>     CID 1420038:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "res = sem_trywait(self->han...".
321                     res = sem_trywait(self->handle);

The deadcode was introduced by the commit
c872d39d324cd6f1a71b73e10406bbaed192d35f.
Modules/_multiprocessing/semaphore.c