greybus: operation: remove unnecessary cast

Remove unnecessary cast of the message size in gb_connection_recv.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
Johan Hovold 2015-03-19 16:46:19 +01:00 committed by Greg Kroah-Hartman
parent ee8f81b096
commit c0d209a07b

View File

@ -876,7 +876,7 @@ void gb_connection_recv(struct gb_connection *connection,
}
header = data;
msg_size = (size_t)le16_to_cpu(header->size);
msg_size = le16_to_cpu(header->size);
if (msg_size > size) {
dev_err(&connection->dev, "incomplete message\n");
return; /* XXX Should still complete operation */