diff options
author | Amol Lad <amol@verismonetworks.com> | 2006-12-08 05:39:32 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:29:01 -0500 |
commit | e2de257cf15d0508d29fa8a54a0dad78de4e75eb (patch) | |
tree | dd6b100d37707f0384cdad5177e114036d54ce47 /drivers/isdn/hardware/eicon/di.c | |
parent | 90cc301859ea8840634324a7f5b9680312377667 (diff) |
[PATCH] drivers/isdn: Handcrafted MIN/MAX Macro removal
Cleanups done to use min/max macros from kernel.h. Handcrafted MIN/MAX
macros are changed to use macros in kernel.h
[akpm@osdl.org: warning fix]
Signed-off-by: Amol Lad <amol@verismonetworks.com>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/hardware/eicon/di.c')
-rw-r--r-- | drivers/isdn/hardware/eicon/di.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/isdn/hardware/eicon/di.c b/drivers/isdn/hardware/eicon/di.c index 0617d7cabf06..e1df8d98c311 100644 --- a/drivers/isdn/hardware/eicon/di.c +++ b/drivers/isdn/hardware/eicon/di.c | |||
@@ -133,7 +133,7 @@ void pr_out(ADAPTER * a) | |||
133 | i = this->XCurrent; | 133 | i = this->XCurrent; |
134 | X = PTR_X(a,this); | 134 | X = PTR_X(a,this); |
135 | while(i<this->XNum && length<270) { | 135 | while(i<this->XNum && length<270) { |
136 | clength = MIN((word)(270-length),X[i].PLength-this->XOffset); | 136 | clength = min((word)(270-length),(word)(X[i].PLength-this->XOffset)); |
137 | a->ram_out_buffer(a, | 137 | a->ram_out_buffer(a, |
138 | &ReqOut->XBuffer.P[length], | 138 | &ReqOut->XBuffer.P[length], |
139 | PTR_P(a,this,&X[i].P[this->XOffset]), | 139 | PTR_P(a,this,&X[i].P[this->XOffset]), |
@@ -622,7 +622,7 @@ byte isdn_ind(ADAPTER * a, | |||
622 | sizeof(a->stream_buffer), | 622 | sizeof(a->stream_buffer), |
623 | &final, NULL, NULL); | 623 | &final, NULL, NULL); |
624 | } | 624 | } |
625 | IoAdapter->RBuffer.length = MIN(MLength, 270); | 625 | IoAdapter->RBuffer.length = min(MLength, (word)270); |
626 | if (IoAdapter->RBuffer.length != MLength) { | 626 | if (IoAdapter->RBuffer.length != MLength) { |
627 | this->complete = 0; | 627 | this->complete = 0; |
628 | } else { | 628 | } else { |
@@ -676,9 +676,9 @@ byte isdn_ind(ADAPTER * a, | |||
676 | this->RCurrent++; | 676 | this->RCurrent++; |
677 | } | 677 | } |
678 | if (cma) { | 678 | if (cma) { |
679 | clength = MIN(MLength, R[this->RCurrent].PLength-this->ROffset); | 679 | clength = min(MLength, (word)(R[this->RCurrent].PLength-this->ROffset)); |
680 | } else { | 680 | } else { |
681 | clength = MIN(a->ram_inw(a, &RBuffer->length)-offset, | 681 | clength = min(a->ram_inw(a, &RBuffer->length)-offset, |
682 | R[this->RCurrent].PLength-this->ROffset); | 682 | R[this->RCurrent].PLength-this->ROffset); |
683 | } | 683 | } |
684 | if(R[this->RCurrent].P) { | 684 | if(R[this->RCurrent].P) { |