Commit 92d6a813b03a576dd821667b6566a1ddf7617137

Authored by David Lechner
Committed by Greg Kroah-Hartman
1 parent a15a3d92ec

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/usb/gadget/function/f_hid.c
... ... @@ -582,7 +582,7 @@
582 582 }
583 583 status = usb_ep_enable(hidg->out_ep);
584 584 if (status < 0) {
585   - ERROR(cdev, "Enable IN endpoint FAILED!\n");
  585 + ERROR(cdev, "Enable OUT endpoint FAILED!\n");
586 586 goto fail;
587 587 }
588 588 hidg->out_ep->driver_data = hidg;