aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usb_device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usb_device.h b/usb_device.h
index b2c7656e..4abf751c 100644
--- a/usb_device.h
+++ b/usb_device.h
@@ -34,7 +34,7 @@
* flashrom recognizes. It does so without displaying an error code allowing us
* to compare error codes against the library enumeration values.
*/
-#define LIBUSB_ERROR(eror_code) (0x20000 | -eror_code)
+#define LIBUSB_ERROR(error_code) (0x20000 | -(error_code))
/*
* The LIBUSB macro converts a libusb failure code into an error code that