Commit b7744b7f authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: es1: drop unnecessary casts

Drop unnecessary explicit casts.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 88e6d37c
......@@ -244,7 +244,7 @@ static void *buffer_send(struct greybus_host_device *hd, u16 cport_id,
pr_err("request to send inbound data buffer\n");
return ERR_PTR(-EINVAL);
}
if (cport_id > (u16)U8_MAX) {
if (cport_id > U8_MAX) {
pr_err("cport_id (%hd) is out of range for ES1\n", cport_id);
return ERR_PTR(-EINVAL);
}
......@@ -423,7 +423,7 @@ static void cport_in_callback(struct urb *urb)
* the rest of the stream is "real" data
*/
data = urb->transfer_buffer;
cport_id = (u16)data[0];
cport_id = data[0];
data = &data[1];
/* Pass this data to the greybus core */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment