Fix libsndfile warning (useless conditional).
authorDavid Robillard <d@drobilla.net>
Mon, 4 Feb 2008 00:29:54 +0000 (00:29 +0000)
committerDavid Robillard <d@drobilla.net>
Mon, 4 Feb 2008 00:29:54 +0000 (00:29 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@3004 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/libsndfile/src/sndfile.c

index 14586526e4bc705fb9b874b0a08c406f3439ca7d..8de582fec00cb18e46a51bd5fd0367aebc2997f5 100644 (file)
@@ -488,9 +488,7 @@ sf_error (SNDFILE *sndfile)
 {      SF_PRIVATE      *psf ;
 
        if (! sndfile)
-       {       if (sf_error != 0)
-                       return sf_errno ;
-               return 0 ;
+       {       return sf_errno ;
                } ;
 
        VALIDATE_SNDFILE_AND_ASSIGN_PSF (sndfile, psf, 0) ;