kernel/eka/include/drivers/mmc.inl
changeset 10 36bfc973b146
parent 9 96e5fb8b040d
child 26 c734af59ce98
--- a/kernel/eka/include/drivers/mmc.inl	Thu Dec 17 09:24:54 2009 +0200
+++ b/kernel/eka/include/drivers/mmc.inl	Thu Jan 07 13:38:45 2010 +0200
@@ -1136,7 +1136,11 @@
  * @internalTechnology
  */
 	{
-	return(0x20000 << ((iMachineInfo.iFlags & TMMCMachineInfo::EMaxTransferLength_16M) >> 8));
+    	TUint32 r = (iMachineInfo.iFlags & TMMCMachineInfo::EMaxTransferLength_16M) >> 8;
+	if (r)
+        	r = 0x20000 << r; 
+    
+	return r;
 	}
 
 inline TUint32 DMMCSocket::DmaAlignment()