]> Cypherpunks repositories - gostls13.git/commit
runtime: remove always false comparison in sigsend
authorTodd Neal <todd@tneal.org>
Tue, 25 Aug 2015 23:25:42 +0000 (18:25 -0500)
committerIan Lance Taylor <iant@golang.org>
Wed, 26 Aug 2015 01:02:55 +0000 (01:02 +0000)
commita94e906c41e83b663cd51751cbb74e801a54aba8
treed60ef1f48bff157c311240bafebd4b361f1704ee
parentaf78482d6b1f7af7ec8339da6cf5fbbad95146bb
runtime: remove always false comparison in sigsend

s is a uint32 and can never be zero. It's max value is already tested
against sig.wanted, whose size is derived from _NSIG.  This also
matches the test in signal_enable.

Fixes #11282

Change-Id: I8eec9c7df8eb8682433616462fe51b264c092475
Reviewed-on: https://go-review.googlesource.com/13940
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/sigqueue.go