Fix redundant comparison

This commit is contained in:
Thom Chiovoloni 2022-08-21 01:08:33 -07:00
parent f506656876
commit 4ecf87619c
No known key found for this signature in database
GPG Key ID: D7733D1D7A775F0A

View File

@ -60,7 +60,7 @@ cfg_if::cfg_if! {
);
let bit = (signum - 1) as usize;
if set.is_null() || bit < 0 || bit >= (8 * size_of::<sigset_t>()) {
if set.is_null() || bit >= (8 * size_of::<sigset_t>()) {
crate::sys::unix::os::set_errno(libc::EINVAL);
return -1;
}