projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee8f81b
)
greybus: operation: remove unnecessary cast
author
Johan Hovold
<johan@hovoldconsulting.com>
Thu, 19 Mar 2015 15:46:19 +0000
(16:46 +0100)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/operation.c
b/drivers/staging/greybus/operation.c
index c85fd401546cfe1caa91fb4df0065c90e1194589..d5fa2f04642db52e13e18e167645e59088dee60a 100644
(file)
--- 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 */