Removed unnecesary code.
authorjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 15 Oct 2005 16:12:03 +0000 (16:12 +0000)
committerjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 15 Oct 2005 16:12:03 +0000 (16:12 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3906 4a8a32a2-be11-0410-ad9d-d568d2c75423

device/lib/_strcmp.c

index eb834161e484c2128b7dab3f7125e964b8dcd0e3..1e06058e7fcad02b1172e03aa934f0bad2aa2273 100644 (file)
@@ -48,11 +48,6 @@ int strcmp (
        while( ! (ret = *(unsigned char *)asrc - *(unsigned char *)adst) && *adst)
                ++asrc, ++adst;
 
-       if ( ret < 0 )
-               ret = -1 ;
-       else if ( ret > 0 )
-               ret = 1 ;
-
        return( ret );
 #endif
 }