s3: Simplify (bool != True) to !bool
authorVolker Lendecke <vl@samba.org>
Sat, 24 Apr 2010 08:49:06 +0000 (10:49 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 24 Apr 2010 08:50:12 +0000 (10:50 +0200)
source3/smbd/dir.c

index 935810bf3e0a12759254d9bce08b25b5184f90b9..cd8d6a26e8016a624120ae1dae9ea3f2826ea7b1 100644 (file)
@@ -260,7 +260,7 @@ static void dptr_close_internal(struct dptr_struct *dptr)
         * biased by one with respect to the bitmap.
         */
 
-       if(bitmap_query(sconn->smb1.searches.dptr_bmap, dptr->dnum - 1) != true) {
+       if (!bitmap_query(sconn->smb1.searches.dptr_bmap, dptr->dnum - 1)) {
                DEBUG(0,("dptr_close_internal : Error - closing dnum = %d and bitmap not set !\n",
                        dptr->dnum ));
        }