diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-02-28 12:40:07 +0100 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2021-03-10 10:10:02 +0000 |
commit | 9635cb4d9115dc5abac36ea77a443714f045beb6 (patch) | |
tree | 0bc237e80d9fc0daceb3c216d0d8e2217395aeed /usb_device.h | |
parent | 89261cc9223afded2ef4de2796d9b2edee24dbb1 (diff) | |
download | flashrom-9635cb4d9115dc5abac36ea77a443714f045beb6.tar.gz flashrom-9635cb4d9115dc5abac36ea77a443714f045beb6.tar.bz2 flashrom-9635cb4d9115dc5abac36ea77a443714f045beb6.zip |
usb_device: Fix up whitespace
Drop unnecessary spaces and indent with tabs, as per the coding style.
TEST=Build with `make distclean && make VERSION=none -j` with and
without this patch, the flashrom executable does not change.
Change-Id: I200ace750dbe3c8d99f792d70a85b2ebd4e5b0ce
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/51115
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'usb_device.h')
-rw-r--r-- | usb_device.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/usb_device.h b/usb_device.h index 4abf751c..8b7a8010 100644 --- a/usb_device.h +++ b/usb_device.h @@ -41,21 +41,21 @@ * flashrom recognizes. It also displays additional libusb specific * information about the failure. */ -#define LIBUSB(expression) \ - ({ \ - int libusb_error__ = (expression); \ +#define LIBUSB(expression) \ + ({ \ + int libusb_error__ = (expression); \ \ - if (libusb_error__ < 0) { \ - msg_perr("libusb error: %s:%d %s\n", \ - __FILE__, \ - __LINE__, \ - libusb_error_name(libusb_error__)); \ + if (libusb_error__ < 0) { \ + msg_perr("libusb error: %s:%d %s\n", \ + __FILE__, \ + __LINE__, \ + libusb_error_name(libusb_error__)); \ libusb_error__ = LIBUSB_ERROR(libusb_error__); \ - } else { \ - libusb_error__ = 0; \ - } \ + } else { \ + libusb_error__ = 0; \ + } \ \ - libusb_error__; \ + libusb_error__; \ }) /* @@ -64,7 +64,7 @@ */ static inline bool usb_device_is_libusb_error(int error_code) { - return (0x20000 <= error_code && error_code < 0x20064); + return (0x20000 <= error_code && error_code < 0x20064); } /* |