diff options
author | jji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-03 06:40:25 +0000 |
---|---|---|
committer | jji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-03 06:40:25 +0000 |
commit | 28d19b00190cbd7bb537ea0e3435f1ac27d09f9e (patch) | |
tree | f647d5e5ecdaaed8c0a9abdc58ec44fdff910393 /MdeModulePkg/Universal | |
parent | 0e27fefd6add97367f4eb9c30e3ca129f7f1b678 (diff) | |
download | edk2-28d19b00190cbd7bb537ea0e3435f1ac27d09f9e.zip edk2-28d19b00190cbd7bb537ea0e3435f1ac27d09f9e.tar.gz edk2-28d19b00190cbd7bb537ea0e3435f1ac27d09f9e.tar.bz2 |
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
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c | 9 |
1 files 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.
|