public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] 4xx_pci.c: add error checking, fix GCC 4.6 build warning
@ 2011-10-29 19:38 Wolfgang Denk
  2011-10-31  9:32 ` Stefan Roese
  2011-11-03 19:40 ` Wolfgang Denk
  0 siblings, 2 replies; 3+ messages in thread
From: Wolfgang Denk @ 2011-10-29 19:38 UTC (permalink / raw)
  To: u-boot

Fix:
4xx_pci.c: In function 'pci_init_board':
4xx_pci.c:855:6: warning: variable 'busno' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
---
 arch/powerpc/cpu/ppc4xx/4xx_pci.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/cpu/ppc4xx/4xx_pci.c b/arch/powerpc/cpu/ppc4xx/4xx_pci.c
index 80b0c1c..2ca355b 100644
--- a/arch/powerpc/cpu/ppc4xx/4xx_pci.c
+++ b/arch/powerpc/cpu/ppc4xx/4xx_pci.c
@@ -707,7 +707,7 @@ void pci_master_init(struct pci_controller *hose)
 #endif /* CONFIG_SYS_PCI_MASTER_INIT */
 
 #if defined(CONFIG_SYS_PCI_MASTER_INIT) || defined(CONFIG_SYS_PCI_TARGET_INIT)
-int pci_440_init (struct pci_controller *hose)
+static int pci_440_init (struct pci_controller *hose)
 {
 	int reg_num = 0;
 
@@ -859,7 +859,9 @@ void pci_init_board(void)
 	 * is selected.
 	 */
 #if defined(CONFIG_SYS_PCI_MASTER_INIT) || defined(CONFIG_SYS_PCI_TARGET_INIT)
-	busno = pci_440_init (&ppc440_hose);
+	busno = pci_440_init(&ppc440_hose);
+	if (busno < 0)
+		return;
 #endif
 #if (defined(CONFIG_440SPE) || \
     defined(CONFIG_460EX) || defined(CONFIG_460GT)) && \
-- 
1.7.6.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] 4xx_pci.c: add error checking, fix GCC 4.6 build warning
  2011-10-29 19:38 [U-Boot] [PATCH] 4xx_pci.c: add error checking, fix GCC 4.6 build warning Wolfgang Denk
@ 2011-10-31  9:32 ` Stefan Roese
  2011-11-03 19:40 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2011-10-31  9:32 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,

On Saturday 29 October 2011 21:38:31 Wolfgang Denk wrote:
> Fix:
> 4xx_pci.c: In function 'pci_init_board':
> 4xx_pci.c:855:6: warning: variable 'busno' set but not used
> [-Wunused-but-set-variable]

Thanks.

Acked-by: Stefan Roese <sr@denx.de>

Best regards,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] 4xx_pci.c: add error checking, fix GCC 4.6 build warning
  2011-10-29 19:38 [U-Boot] [PATCH] 4xx_pci.c: add error checking, fix GCC 4.6 build warning Wolfgang Denk
  2011-10-31  9:32 ` Stefan Roese
@ 2011-11-03 19:40 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2011-11-03 19:40 UTC (permalink / raw)
  To: u-boot

Dear Wolfgang Denk,

In message <1319917111-14323-1-git-send-email-wd@denx.de> you wrote:
> Fix:
> 4xx_pci.c: In function 'pci_init_board':
> 4xx_pci.c:855:6: warning: variable 'busno' set but not used
> [-Wunused-but-set-variable]
> 
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> Cc: Stefan Roese <sr@denx.de>
> ---
>  arch/powerpc/cpu/ppc4xx/4xx_pci.c |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The computer can't tell you the emotional story. It can give you  the
exact mathematical design, but what's missing is the eyebrows.
- Frank Zappa

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-03 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-29 19:38 [U-Boot] [PATCH] 4xx_pci.c: add error checking, fix GCC 4.6 build warning Wolfgang Denk
2011-10-31  9:32 ` Stefan Roese
2011-11-03 19:40 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox