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:
parent
ee8f81b096
commit
c0d209a07b
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user