Skip to content

Commit

Permalink
usb: gadget: Fix copy/pasted error message
Browse files Browse the repository at this point in the history
This fixes an error message that was probably copied and pasted. The same
message is used for both the in and out endpoints, so it makes it impossible
to know which one actually failed because both cases say "IN".

Make the out endpoint error message say "OUT".

Signed-off-by: David Lechner <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
  • Loading branch information
dlech authored and Felipe Balbi committed Jan 3, 2017
1 parent 9418ee1 commit 43aef5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/function/f_hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ static int hidg_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
}
status = usb_ep_enable(hidg->out_ep);
if (status < 0) {
ERROR(cdev, "Enable IN endpoint FAILED!\n");
ERROR(cdev, "Enable OUT endpoint FAILED!\n");
goto fail;
}
hidg->out_ep->driver_data = hidg;
Expand Down

0 comments on commit 43aef5c

Please sign in to comment.