svn commit: r269110 - head/sys/boot/arm/at91/libat91
Ian Lepore
ian at FreeBSD.org
Sat Jul 26 03:19:13 UTC 2014
Author: ian
Date: Sat Jul 26 03:19:13 2014
New Revision: 269110
URL: http://svnweb.freebsd.org/changeset/base/269110
Log:
Silence a clang warning about a while loop with an empty body.
Modified:
head/sys/boot/arm/at91/libat91/emac.c
Modified: head/sys/boot/arm/at91/libat91/emac.c
==============================================================================
--- head/sys/boot/arm/at91/libat91/emac.c Sat Jul 26 02:53:51 2014 (r269109)
+++ head/sys/boot/arm/at91/libat91/emac.c Sat Jul 26 03:19:13 2014 (r269110)
@@ -96,7 +96,8 @@ GetServerAddress(void)
memcpy(p_ARP->target_ip, serverIPAddr, 4);
// wait until transmit is available
- while (!(*AT91C_EMAC_TSR & AT91C_EMAC_BNQ)) ;
+ while (!(*AT91C_EMAC_TSR & AT91C_EMAC_BNQ))
+ continue;
*AT91C_EMAC_TSR |= AT91C_EMAC_COMP;
*AT91C_EMAC_TAR = (unsigned)transmitBuffer;
@@ -157,7 +158,8 @@ Send_TFTP_Packet(char *tftpData, unsigne
udpHdr->udp_cksum = SWAP16(t_checksum);
- while (!(*AT91C_EMAC_TSR & AT91C_EMAC_BNQ)) ;
+ while (!(*AT91C_EMAC_TSR & AT91C_EMAC_BNQ))
+ continue;
*AT91C_EMAC_TSR |= AT91C_EMAC_COMP;
*AT91C_EMAC_TAR = (unsigned)tftpSendPacket;
More information about the svn-src-all
mailing list