Commit c0d209a0 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: operation: remove unnecessary cast

Remove unnecessary cast of the message size in gb_connection_recv.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent ee8f81b0
...@@ -876,7 +876,7 @@ void gb_connection_recv(struct gb_connection *connection, ...@@ -876,7 +876,7 @@ void gb_connection_recv(struct gb_connection *connection,
} }
header = data; header = data;
msg_size = (size_t)le16_to_cpu(header->size); msg_size = le16_to_cpu(header->size);
if (msg_size > size) { if (msg_size > size) {
dev_err(&connection->dev, "incomplete message\n"); dev_err(&connection->dev, "incomplete message\n");
return; /* XXX Should still complete operation */ return; /* XXX Should still complete operation */
......
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