ANDROID: usb: gadget: function: cleanup: Add blank line after declaration
authorAnson Jacob <ansonjacob.aj@gmail.com>
Fri, 11 Nov 2016 06:10:04 +0000 (01:10 -0500)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 1 Dec 2016 09:48:44 +0000 (15:18 +0530)
Fix warning generated by checkpatch.pl:
Missing a blank line after declarations

Change-Id: Id129bb8cc8fa37c67a647e2e5996bb2817020e65
Signed-off-by: Anson Jacob <ansonjacob.aj@gmail.com>
drivers/usb/gadget/function/f_accessory.c
drivers/usb/gadget/function/f_audio_source.c
drivers/usb/gadget/function/f_mtp.c

index 2ca16a577542b870cfac85a3201f3754b28eb707..9d3ec0e3747561855dfb7247990410a1195747d5 100644 (file)
@@ -211,6 +211,7 @@ static inline struct acc_dev *func_to_dev(struct usb_function *f)
 static struct usb_request *acc_request_new(struct usb_ep *ep, int buffer_size)
 {
        struct usb_request *req = usb_ep_alloc_request(ep, GFP_KERNEL);
+
        if (!req)
                return NULL;
 
@@ -1021,6 +1022,7 @@ acc_function_unbind(struct usb_configuration *c, struct usb_function *f)
 static void acc_start_work(struct work_struct *data)
 {
        char *envp[2] = { "ACCESSORY=START", NULL };
+
        kobject_uevent_env(&acc_device.this_device->kobj, KOBJ_CHANGE, envp);
 }
 
index 2489a5fa26858876c93b8ae189a283ef176f2e5d..db7903d19c435e4c5b08c09270baa44c5c48b6b2 100644 (file)
@@ -310,6 +310,7 @@ static struct device_attribute *audio_source_function_attributes[] = {
 static struct usb_request *audio_request_new(struct usb_ep *ep, int buffer_size)
 {
        struct usb_request *req = usb_ep_alloc_request(ep, GFP_KERNEL);
+
        if (!req)
                return NULL;
 
index b9e3e97c57c429defeaa374ec88d2ec66d4131c8..d8b69af6e335302824c5f0d52cb478d5b732c34a 100644 (file)
@@ -361,6 +361,7 @@ static inline struct mtp_dev *func_to_mtp(struct usb_function *f)
 static struct usb_request *mtp_request_new(struct usb_ep *ep, int buffer_size)
 {
        struct usb_request *req = usb_ep_alloc_request(ep, GFP_KERNEL);
+
        if (!req)
                return NULL;
 
@@ -1121,6 +1122,7 @@ static int mtp_ctrlrequest(struct usb_composite_dev *cdev,
                } else if (ctrl->bRequest == MTP_REQ_GET_DEVICE_STATUS
                                && w_index == 0 && w_value == 0) {
                        struct mtp_device_status *status = cdev->req->buf;
+
                        status->wLength =
                                __constant_cpu_to_le16(sizeof(*status));
 
@@ -1143,6 +1145,7 @@ static int mtp_ctrlrequest(struct usb_composite_dev *cdev,
        /* respond with data transfer or status phase? */
        if (value >= 0) {
                int rc;
+
                cdev->req->zero = value < w_length;
                cdev->req->length = value;
                rc = usb_ep_queue(cdev->gadget->ep0, cdev->req, GFP_ATOMIC);
@@ -1378,6 +1381,7 @@ static struct mtp_instance *to_mtp_instance(struct config_item *item)
 static void mtp_attr_release(struct config_item *item)
 {
        struct mtp_instance *fi_mtp = to_mtp_instance(item);
+
        usb_put_function_instance(&fi_mtp->func_inst);
 }