From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] drivers:usb:fsl: Return if USB_MAX_CONTROLLER_COUNT is incorrect
Date: Fri, 5 Jun 2015 16:08:15 +0200 [thread overview]
Message-ID: <201506051608.15182.marex@denx.de> (raw)
In-Reply-To: <SN1PR0301MB162980B4B34173211077E801F3B20@SN1PR0301MB1629.namprd03.prod.outlook.com>
On Friday, June 05, 2015 at 06:19:16 AM, Badola Nikhil wrote:
> > -----Original Message-----
> > From: Nikhil Badola [mailto:nikhil.badola at freescale.com]
> > Sent: Tuesday, May 12, 2015 2:58 PM
> > To: u-boot at lists.denx.de
> > Cc: Badola Nikhil-B46172
> > Subject: [PATCH] drivers:usb:fsl: Return if USB_MAX_CONTROLLER_COUNT
Hi,
please do me a favor next time -- insert a space after each tag,
ie. drivers: usb: fsl: ....
> > is incorrect
> >
> > Return if USB_MAX_CONTROLLER_COUNT hence the index of the controller
> > to be initialised is incorrect
> >
> > Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
> > ---
> >
> > drivers/usb/host/ehci-fsl.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
> > index ed83eb4..1973e0b 100644
> > --- a/drivers/usb/host/ehci-fsl.c
> > +++ b/drivers/usb/host/ehci-fsl.c
> > @@ -76,7 +76,7 @@ int ehci_hcd_init(int index, enum usb_init_type init,
> >
> > break;
> >
> > default:
> > printf("ERROR: wrong controller index!!\n");
> >
> > - break;
> > + return -1;
Can you please use value from errno.h here , like -EINVAL ?
Thanks!
Best regards,
Marek Vasut
next prev parent reply other threads:[~2015-06-05 14:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-12 9:28 [U-Boot] [PATCH] drivers:usb:fsl: Return if USB_MAX_CONTROLLER_COUNT is incorrect Nikhil Badola
2015-06-05 4:19 ` Badola Nikhil
2015-06-05 14:08 ` Marek Vasut [this message]
2015-06-07 6:51 ` Badola Nikhil
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=201506051608.15182.marex@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.