summaryrefslogtreecommitdiffstats
path: root/usb_device.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-02-28 12:40:07 +0100
committerAngel Pons <th3fanbus@gmail.com>2021-03-10 10:10:02 +0000
commit9635cb4d9115dc5abac36ea77a443714f045beb6 (patch)
tree0bc237e80d9fc0daceb3c216d0d8e2217395aeed /usb_device.c
parent89261cc9223afded2ef4de2796d9b2edee24dbb1 (diff)
downloadflashrom-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.c')
-rw-r--r--usb_device.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usb_device.c b/usb_device.c
index 344c4cb90..5a468dd55 100644
--- a/usb_device.c
+++ b/usb_device.c
@@ -224,12 +224,12 @@ int usb_device_find(struct usb_match const *match, struct usb_device **devices)
ret = LIBUSB(libusb_get_device_descriptor(list[i],
&descriptor));
- if (ret != 0) {
- msg_perr("USB: Failed to get device descriptor");
- free(*devices);
- *devices = NULL;
- return ret;
- }
+ if (ret != 0) {
+ msg_perr("USB: Failed to get device descriptor");
+ free(*devices);
+ *devices = NULL;
+ return ret;
+ }
if (check_match(&match->vid, descriptor.idVendor) &&
check_match(&match->pid, descriptor.idProduct) &&
@@ -279,8 +279,8 @@ int usb_device_show(char const *prefix, struct usb_device *device)
ret = usb_device_open(device);
if (ret != 0) {
- msg_perr("USB: Failed to open device\n");
- return ret;
+ msg_perr("USB: Failed to open device\n");
+ return ret;
}
ret = LIBUSB(libusb_get_device_descriptor(device->device, &descriptor));