syncmlfw/ds/syncagent/src/nsmldscontent.cpp
branchRCL_3
changeset 61 b183ec05bd8c
parent 14 9e9792ae22e3
child 62 19bba8228ff0
--- a/syncmlfw/ds/syncagent/src/nsmldscontent.cpp	Thu Aug 19 10:44:50 2010 +0300
+++ b/syncmlfw/ds/syncagent/src/nsmldscontent.cpp	Tue Aug 31 16:04:06 2010 +0300
@@ -120,7 +120,7 @@
 //
 TBool CNSmlDSContent::ContentIndexIsSet() const
 	{
-	if ( ( iIndex < 0 ) || ( iIndex >= iStores.Count() ) )
+	if ( iIndex == -1 )
 		{
 		return EFalse;
 		}
@@ -2476,13 +2476,7 @@
 	DBG_FILE(_S8("CNSmlDSContent::PackupRequestL begins"));
 	RMutex mutex;
 	if(mutex.OpenGlobal( KNSmlDSContentAtomicOperationName ) != KErrNone )
-	    {
-		TRAPD(err, mutex.CreateGlobal( KNSmlDSContentAtomicOperationName ));
-		if(err != KErrNone)
-		    {
-            return;
-		    }
-	    }
+		mutex.CreateGlobal( KNSmlDSContentAtomicOperationName );
 	mutex.Wait();
 	SaveMapInfoL( aAnchor );
 	mutex.Signal();