From: Paweł Szewczyk
Date: Mon, 12 Dec 2016 12:54:17 +0000 (+0100)
Subject: Restore correct coding style in usb_host.c
X-Git-Tag: submit/tizen/20170406.043409~1
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d87cdb2b69e9a97ecf37777edda516137252661b;p=platform%2Fcore%2Fapi%2Fusb-host.git
Restore correct coding style in usb_host.c
This commit corrects the coding style errors introduced in
commit 0da04f8ec63350ac875247f1b97b9147ba852db7.
The space before the label colon is actually prohibited and detected
by checkpatch script.
Change-Id: I707d2e9a6e40cdc27dfd684c923a2deed59fd923
Signed-off-by: Paweł Szewczyk
---
diff --git a/src/usb_host.c b/src/usb_host.c
index 6f6e24e..764f8f1 100644
--- a/src/usb_host.c
+++ b/src/usb_host.c
@@ -260,7 +260,7 @@ static int dump_altsetting(struct usb_host_altsetting_s *dest,
return 0;
//LCOV_EXCL_START System Error
-free_eps :
+free_eps:
while (--i >= 0)
free_ep(eps + i);
free(eps);
@@ -300,7 +300,7 @@ static int dump_interface(struct usb_host_interface_s *dest,
return 0;
//LCOV_EXCL_START System Error
-free_alts :
+free_alts:
while (--i >= 0)
free_altsetting(alts + i);
free(alts);
@@ -357,7 +357,7 @@ static int dump_config_desc(struct usb_host_config_s *dest,
return 0;
//LCOV_EXCL_START System Error
-free_interfaces :
+free_interfaces:
while (--i >= 0)
free_interface(interfaces + i);
free(interfaces);
@@ -401,7 +401,7 @@ int usb_host_create(usb_host_context_h *ctx)
return USB_HOST_ERROR_NONE;
//LCOV_EXCL_START System Error
-free_ctx :
+free_ctx:
free(_ctx);
ret = translate_error(ret);
out:
@@ -511,7 +511,7 @@ int usb_host_device_open_with_vid_pid(usb_host_context_h ctx,
return USB_HOST_ERROR_NONE;
//LCOV_EXCL_START System Error
-close_handle :
+close_handle:
libusb_close(ldev_handle);
out:
_E("Failed to open device with given parameters");
@@ -623,7 +623,7 @@ int usb_host_get_device_list(usb_host_context_h context, usb_host_device_h **dev
return USB_HOST_ERROR_NONE;
//LCOV_EXCL_START System Error
-free_dev_list :
+free_dev_list:
while (--i >= 0)
usb_host_unref_device(list[i]);
free(list);
@@ -829,7 +829,7 @@ claim_interface:
return 0;
//LCOV_EXCL_START System Error
-claim_failed :
+claim_failed:
if (driver_detached)
libusb_attach_kernel_driver(lusb_dev_handle,
interface_number);