Variable ret is being initialized with a value that is never read and ret is being re-assigned immediately after the initialization in both paths of an if statement. This is redundant and can be removed.
Unified · Split
| @@ -1168,7 +1168,7 @@ static void usb3_set_status_stage(struct renesas_usb3_ep *usb3_ep, · 1167 unmodified lines | ||
| 1168 | 1168 | static void usb3_p0_xfer(struct renesas_usb3_ep *usb3_ep, |
| 1169 | 1169 | struct renesas_usb3_request *usb3_req) |
| 1170 | 1170 | { |
| 1171 | − int ret = -EAGAIN; | |
| 1171 | + int ret; | |
| 1172 | 1172 | |
| 1173 | 1173 | if (usb3_ep->dir_in) |
| 1174 | 1174 | ret = usb3_write_pipe(usb3_ep, usb3_req, USB3_P0_WRITE); |