]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
greybus: ap: remove extra parameter to convert_ap_message()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 19 Nov 2014 11:54:56 +0000 (17:24 +0530)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 19 Nov 2014 18:38:50 +0000 (10:38 -0800)
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/ap.c

index 990e5c0620b9aac173941fe418f60d2371b4b045..d68221b7736c2c50aa771eb7dbd2c2f439d3b09b 100644 (file)
@@ -249,11 +249,11 @@ static void svc_suspend(struct svc_function_suspend *suspend,
        dev_err(hd->parent, "Got an suspend message???\n");
 }
 
-static struct svc_msg *convert_ap_message(struct ap_msg *ap_msg,
-                                         struct greybus_host_device *hd)
+static struct svc_msg *convert_ap_message(struct ap_msg *ap_msg)
 {
        struct svc_msg *svc_msg;
        struct svc_msg_header *header;
+       struct greybus_host_device *hd = ap_msg->hd;
 
        svc_msg = (struct svc_msg *)ap_msg->data;
        header = &svc_msg->header;
@@ -285,7 +285,7 @@ static void ap_process_event(struct work_struct *work)
        hd = ap_msg->hd;
 
        /* Turn the "raw" data into a real message */
-       svc_msg = convert_ap_message(ap_msg, hd);
+       svc_msg = convert_ap_message(ap_msg);
        if (!svc_msg)
                return;