From: Peter Mamonov <pmamonov@gmail.com>
To: barebox@lists.infradead.org
Cc: Peter Mamonov <pmamonov@gmail.com>
Subject: [PATCH] usb: uhci-hcd: fix submit_int_msg() return value
Date: Thu, 23 Mar 2017 00:37:36 +0300 [thread overview]
Message-ID: <20170322213736.24579-1-pmamonov@gmail.com> (raw)
Signed-off-by: Peter Mamonov <pmamonov@gmail.com>
---
drivers/usb/host/uhci-hcd.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c
index 04d167ee3..d32140026 100644
--- a/drivers/usb/host/uhci-hcd.c
+++ b/drivers/usb/host/uhci-hcd.c
@@ -579,6 +579,7 @@ static int submit_int_msg(struct usb_device *dev,
struct uhci_td *mytd;
void *_buffer;
dma_addr_t buffer_dma;
+ int ret = 0;
if (interval < 0 || interval >= 256)
return -1;
@@ -624,7 +625,7 @@ static int submit_int_msg(struct usb_device *dev,
usb_dotoggle(dev, usb_pipeendpoint(pipe), usb_pipeout(pipe));
- handle_usb_interrupt(uhci);
+ ret = handle_usb_interrupt(uhci);
if (buffer) {
memcpy(buffer, _buffer, transfer_len);
@@ -633,7 +634,7 @@ static int submit_int_msg(struct usb_device *dev,
usb_check_int_chain(uhci);
- return 0;
+ return ret;
}
/**********************************************************************
* Low Level functions
--
2.11.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
reply other threads:[~2017-03-22 21:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170322213736.24579-1-pmamonov@gmail.com \
--to=pmamonov@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox