From: Johan Hovold Date: Thu, 19 Mar 2015 15:46:19 +0000 (+0100) Subject: greybus: operation: remove unnecessary cast X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1669 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c0d209a07beb3550203bfa237d27433a1fbc9cee;p=karo-tx-linux.git greybus: operation: remove unnecessary cast Remove unnecessary cast of the message size in gb_connection_recv. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/operation.c b/drivers/staging/greybus/operation.c index c85fd401546c..d5fa2f04642d 100644 --- a/drivers/staging/greybus/operation.c +++ b/drivers/staging/greybus/operation.c @@ -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 */