omap3530/beagle_drivers/medwb/medwb.cpp
changeset 51 254b9435d75e
parent 33 2905910218db
child 108 181b2f6a9979
--- a/omap3530/beagle_drivers/medwb/medwb.cpp	Fri Jul 30 11:17:10 2010 +0100
+++ b/omap3530/beagle_drivers/medwb/medwb.cpp	Mon Aug 23 02:29:41 2010 +0100
@@ -495,9 +495,9 @@
 	{
 	Int64 pos = iCurrentReq.Pos();
 	Int64 length = iCurrentReq.Length();
-	TInt r;
+	TInt r = KErrGeneral;
 	if (length<0 || pos<0 || (pos+length)>KMaxTInt)
-		return KErrGeneral;
+		return r;
 	TInt p=(TInt)pos;
 	TInt l=(TInt)length;