From: Johan Hovold Date: Tue, 7 Apr 2015 09:27:09 +0000 (+0200) Subject: greybus: es1: drop unnecessary casts X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1605 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b7744b7f97d1c86d2a480fdc53a22a042ac4dda9;p=karo-tx-linux.git greybus: es1: drop unnecessary casts Drop unnecessary explicit casts. Signed-off-by: Johan Hovold Reviewed-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/es1.c b/drivers/staging/greybus/es1.c index f559c1d53e89..7f7e2fdc094f 100644 --- a/drivers/staging/greybus/es1.c +++ b/drivers/staging/greybus/es1.c @@ -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 */