PERFORCE change 106137 for review

[ Available lists | Index of p4-projects | Month of Sep 2006 | Week of 15 Sep 2006 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Warner Losh <imp@FreeBSD.org>
Date
15 Sep 2006 07:25:19
Subject
PERFORCE change 106137 for review
Message-ID
200609150725.k8F7P83j042368@repoman.freebsd.org


[ Hide this part ]
http://perforce.freebsd.org/chv.cgi?CH=106137

Change 106137 by imp@imp_lighthouse on 2006/09/15 07:24:42

Eliminate 4 bytes from strlen.

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/p_string.c#10 edit
.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/spi_flash_write.c#1 branch

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/p_string.c#10 (text+ko) ====

@@ -51,9 +51,8 @@
p_strlen(const char *buffer)
{
int len = 0;
- if (buffer)
- while (buffer[len])
- len++;
+ while (buffer[len])
+ len++;
return (len);
}



Elapsed time: 0.075 seconds