greybus: operation: remove unnecessary cast
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 19 Mar 2015 15:46:19 +0000 (16:46 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 19 Mar 2015 16:28:19 +0000 (17:28 +0100)
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>
drivers/staging/greybus/operation.c

index c85fd40..d5fa2f0 100644 (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 */