]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
greybus: ap: function_id is already set by svc_msg_alloc()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 19 Nov 2014 11:54:59 +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 a3bf146e5562be05a4f0a1ab7f295ea3e4f2466d..35367174afb48d23f884cdbc170e9ccca6372254 100644 (file)
@@ -69,7 +69,6 @@ int svc_set_route_send(struct gb_interface *interface,
        if (!svc_msg)
                return -ENOMEM;
 
-       svc_msg->header.function_id = SVC_FUNCTION_UNIPRO_NETWORK_MANAGEMENT;
        svc_msg->header.message_type = SVC_MSG_DATA;
        svc_msg->header.payload_length =
                cpu_to_le16(sizeof(struct svc_function_unipro_set_route));
@@ -111,7 +110,6 @@ static void svc_handshake(struct svc_function_handshake *handshake,
        if (!svc_msg)
                return;
 
-       svc_msg->header.function_id = SVC_FUNCTION_HANDSHAKE;
        svc_msg->header.message_type = SVC_MSG_DATA;
        svc_msg->header.payload_length =
                cpu_to_le16(sizeof(*handshake));