Skip to content

Commit 7ea3cc4

Browse files
dlechgregkh
authored andcommitted
usb: gadget: Fix copy/pasted error message
[ Upstream commit 43aef5c2ca90535b3227e97e71604291875444ed ] 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 <david@lechnology.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f4a42f8 commit 7ea3cc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/usb/gadget/function/f_hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ static int hidg_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
539539
}
540540
status = usb_ep_enable(hidg->out_ep);
541541
if (status < 0) {
542-
ERROR(cdev, "Enable IN endpoint FAILED!\n");
542+
ERROR(cdev, "Enable OUT endpoint FAILED!\n");
543543
goto fail;
544544
}
545545
hidg->out_ep->driver_data = hidg;

0 commit comments

Comments
 (0)