Skip to contentSkip to conversation

smc91111.c gcc-3.3.3 warning fix

PATCH New Woodruff 2 participants 2 messages Jun 16, 2004

lore
Share & tools
lore

Woodruff

#0 lore raw

PATCH 1/1 smc91111.c gcc-3.3.3 warning fix

Even toward the more trivial, I believe that Wolfgang or someone pointed out before that adding a ';' after the target goto label will also remove the warning.

Regards,
Richard W.

Quoted 44 lines

-----Original Message-----
From: u-boot-users-admin at lists.sourceforge.net [mailto:u-boot-users- admin at lists.sourceforge.net] On Behalf Of Ladislav Michl
Sent: Wednesday, June 16, 2004 8:43 AM
To: u-boot-users at lists.sourceforge.net
Subject: [U-Boot-Users] [PATCH] smc91111.c gcc-3.3.3 warning fix

Hi, really trivial fix...

smc91111.c: In function `smc_phy_configure':
smc91111.c:1419: warning: deprecated use of label at end of compound statement

Index: drivers/smc91111.c
===================================================================
RCS file: /cvsroot/u-boot/u-boot/drivers/smc91111.c,v retrieving revision 1.15
diff -u -p -r1.15 smc91111.c

smc91111.c +1 -5
@@ -1322,7 +1322,7 @@ static void smc_phy_configure ()
 
 	if (timeout < 1) {
 		printf ("%s:PHY reset timed out\n", SMC_DEV_NAME);
-		goto smc_phy_configure_exit;
+		return;
 	}
 
 	/* Read PHY Register 18, Status Output */
@@ -1413,9 +1413,6 @@ static void smc_phy_configure ()
 
 	/* Re-Configure the Receive/Phy Control register */
 	SMC_outw (RPC_DEFAULT, RPC_REG);
-
-      smc_phy_configure_exit:
-
 }
 #endif /* !CONFIG_SMC91111_EXT_PHY */
 
 
 
 
-------------------------------------------------------
Quoted 3 lines

This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco,

CA

Quoted 1 line

REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code

NWMGYKND

Quoted 4 lines

_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

#1 lore raw

PATCH 1/1 smc91111.c gcc-3.3.3 warning fix

Quoted 6 lines · Richard

Even toward the more trivial, I believe that Wolfgang or someone pointed out before that adding a ';' after the target goto label will also remove the warning.

Regards,
Richard W.

Right, but I'm still considering such usage of goto ugly as hell.

ladis