Commit c002b0ec authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: ap: function_id is already set by svc_msg_alloc()

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 64e69291
...@@ -69,7 +69,6 @@ int svc_set_route_send(struct gb_interface *interface, ...@@ -69,7 +69,6 @@ int svc_set_route_send(struct gb_interface *interface,
if (!svc_msg) if (!svc_msg)
return -ENOMEM; return -ENOMEM;
svc_msg->header.function_id = SVC_FUNCTION_UNIPRO_NETWORK_MANAGEMENT;
svc_msg->header.message_type = SVC_MSG_DATA; svc_msg->header.message_type = SVC_MSG_DATA;
svc_msg->header.payload_length = svc_msg->header.payload_length =
cpu_to_le16(sizeof(struct svc_function_unipro_set_route)); cpu_to_le16(sizeof(struct svc_function_unipro_set_route));
...@@ -111,7 +110,6 @@ static void svc_handshake(struct svc_function_handshake *handshake, ...@@ -111,7 +110,6 @@ static void svc_handshake(struct svc_function_handshake *handshake,
if (!svc_msg) if (!svc_msg)
return; return;
svc_msg->header.function_id = SVC_FUNCTION_HANDSHAKE;
svc_msg->header.message_type = SVC_MSG_DATA; svc_msg->header.message_type = SVC_MSG_DATA;
svc_msg->header.payload_length = svc_msg->header.payload_length =
cpu_to_le16(sizeof(*handshake)); cpu_to_le16(sizeof(*handshake));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment