diff options
| author | Thom Chiovoloni <thom@shift.click> | 2022-08-21 01:08:33 -0700 |
|---|---|---|
| committer | Thom Chiovoloni <thom@shift.click> | 2022-08-21 01:08:33 -0700 |
| commit | 4ecf87619c8e2f6212a46501ea2aff18f5beb8c5 (patch) | |
| tree | 0b9205ba908f8a6a5f09c256892db5acfd588b33 | |
| parent | f506656876d445eb64c00721ca39007d08480e65 (diff) | |
| download | rust-4ecf87619c8e2f6212a46501ea2aff18f5beb8c5.tar.gz rust-4ecf87619c8e2f6212a46501ea2aff18f5beb8c5.zip | |
Fix redundant comparison
| -rw-r--r-- | library/std/src/sys/unix/process/process_common.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/process/process_common.rs b/library/std/src/sys/unix/process/process_common.rs index 6ef02e2df77..6985f1d7830 100644 --- a/library/std/src/sys/unix/process/process_common.rs +++ b/library/std/src/sys/unix/process/process_common.rs @@ -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; } |
