From 28d19b00190cbd7bb537ea0e3435f1ac27d09f9e Mon Sep 17 00:00:00 2001 From: jji4 Date: Fri, 3 Apr 2009 06:40:25 +0000 Subject: Update IScsiCheckOpParams to get the declarative MaxRecvDataSegmentLength directly git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8018 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c index 7c350d0..952150c 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c @@ -1206,16 +1206,11 @@ IScsiCheckOpParams ( Session->ImmediateData = (BOOLEAN) (Session->ImmediateData && (AsciiStrCmp (Value, "Yes") == 0)); // - // MaxRecvDataSegmentLength, result function is Mininum. + // MaxRecvDataSegmentLength is declarative. // Value = IScsiGetValueByKeyFromList (KeyValueList, ISCSI_KEY_MAX_RECV_DATA_SEGMENT_LENGTH); if (Value != NULL) { - // - // MaxRecvDataSegmentLength is declarative. - // - NumericValue = AsciiStrDecimalToUintn (Value); - - Conn->MaxRecvDataSegmentLength = (UINT32) MIN (Conn->MaxRecvDataSegmentLength, NumericValue); + Conn->MaxRecvDataSegmentLength = (UINT32) AsciiStrDecimalToUintn (Value); } // // MaxBurstLength, result funtion is Mininum. -- cgit v1.1