diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-07-13 16:37:36 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-07-15 09:26:23 +0200 |
| commit | 13d5e89e029784d9dba5e93d3be71af08cdfd502 (patch) | |
| tree | 49a4e42f8043e2c447f3e3e3c12002dae2adbf93 /executor/common_usb.h | |
| parent | b458f2c1a61c78e2004be6b4ef60b45fb81bd684 (diff) | |
executor: remove NONFAILING from pseudo-syscalls
This is not needed anymore afer the previous commit.
Fixes #1918
Diffstat (limited to 'executor/common_usb.h')
| -rw-r--r-- | executor/common_usb.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/executor/common_usb.h b/executor/common_usb.h index 3996b0e1c..f9d277697 100644 --- a/executor/common_usb.h +++ b/executor/common_usb.h @@ -107,9 +107,7 @@ static struct usb_device_index* add_usb_index(int fd, const char* dev, size_t de if (i >= USB_MAX_FDS) return NULL; - int rv = 0; - NONFAILING(rv = parse_usb_descriptor(dev, dev_len, &usb_devices[i].index)); - if (!rv) + if (!parse_usb_descriptor(dev, dev_len, &usb_devices[i].index)) return NULL; __atomic_store_n(&usb_devices[i].fd, fd, __ATOMIC_RELEASE); |
