History

usb: gadget: udc: renesas_usb3: remove redundant assignment to ret

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.

Colin Ian King committed 7 years ago

Commit 4aef7961 parent dfc4fde1 file · +1 −1Browse files

Unified · Split

drivers/usb/gadget/udc/renesas_usb3.c+1−1
@@ -1168,7 +1168,7 @@ static void usb3_set_status_stage(struct renesas_usb3_ep *usb3_ep, · 1167 unmodified lines
11681168 static void usb3_p0_xfer(struct renesas_usb3_ep *usb3_ep,
11691169 struct renesas_usb3_request *usb3_req)
11701170 {
1171− int ret = -EAGAIN;
1171+ int ret;
11721172
11731173 if (usb3_ep->dir_in)
11741174 ret = usb3_write_pipe(usb3_ep, usb3_req, USB3_P0_WRITE);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t