Skip to content

Commit 770b2c3

Browse files
committed
Fix redundant comparison
1 parent 3cb643f commit 770b2c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/sys/unix/process/process_common.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ cfg_if::cfg_if! {
6060
);
6161

6262
let bit = (signum - 1) as usize;
63-
if set.is_null() || bit < 0 || bit >= (8 * size_of::<sigset_t>()) {
63+
if set.is_null() || bit >= (8 * size_of::<sigset_t>()) {
6464
crate::sys::unix::os::set_errno(libc::EINVAL);
6565
return -1;
6666
}

0 commit comments

Comments
 (0)