Restore correct coding style in usb_host.c 73/104173/5
authorPaweł Szewczyk <p.szewczyk@samsung.com>
Mon, 12 Dec 2016 12:54:17 +0000 (13:54 +0100)
committerPaweł Szewczyk <p.szewczyk@samsung.com>
Fri, 24 Mar 2017 14:40:01 +0000 (15:40 +0100)
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 <p.szewczyk@samsung.com>
src/usb_host.c

index 6f6e24e818123006821b280d13582c62a5cb3d60..764f8f182bbae42f2e9c6b65aa9f0a64294e7900 100644 (file)
@@ -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);