From 13d5e89e029784d9dba5e93d3be71af08cdfd502 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 13 Jul 2020 16:37:36 +0200 Subject: executor: remove NONFAILING from pseudo-syscalls This is not needed anymore afer the previous commit. Fixes #1918 --- executor/common_usb.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'executor/common_usb.h') 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); -- cgit mrf-deployment