From: Eric Sesterhenn / snakebyte Date: Tue, 20 Dec 2005 13:15:56 +0000 Subject: [KJ] [Patch 2/5] Cleanup MIN/MAX Macro usage in eicon/di.c Message-Id: <1135084556.24065.6.camel@alice> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============091939695370362617==" List-Id: To: kernel-janitors@vger.kernel.org --===============091939695370362617== Content-Type: text/plain Content-Transfer-Encoding: 7bit hi, This patch changes eicon/di.c from MIN/MAX usage to min/max. Signed-of-by: Eric Sesterhenn --- linux-2.6.15-rc6/drivers/isdn/hardware/eicon/di.c.orig 2005-12-20 09:56:54.000000000 +0100 +++ linux-2.6.15-rc6/drivers/isdn/hardware/eicon/di.c 2005-12-20 10:09:56.000000000 +0100 @@ -133,7 +133,7 @@ void pr_out(ADAPTER * a) i = this->XCurrent; X = PTR_X(a,this); while(iXNum && length<270) { - clength = MIN((word)(270-length),X[i].PLength-this->XOffset); + clength = min((word)(270-length),(word)(X[i].PLength-this->XOffset)); a->ram_out_buffer(a, &ReqOut->XBuffer.P[length], PTR_P(a,this,&X[i].P[this->XOffset]), @@ -622,7 +622,7 @@ byte isdn_ind(ADAPTER * a, sizeof(a->stream_buffer), &final, NULL, NULL); } - IoAdapter->RBuffer.length = MIN(MLength, 270); + IoAdapter->RBuffer.length = min((word)MLength, (word)270); if (IoAdapter->RBuffer.length != MLength) { this->complete = 0; } else { @@ -676,9 +676,9 @@ byte isdn_ind(ADAPTER * a, this->RCurrent++; } if (cma) { - clength = MIN(MLength, R[this->RCurrent].PLength-this->ROffset); + clength = min(MLength, (word)(R[this->RCurrent].PLength-this->ROffset)); } else { - clength = MIN(a->ram_inw(a, &RBuffer->length)-offset, + clength = min(a->ram_inw(a, &RBuffer->length)-offset, R[this->RCurrent].PLength-this->ROffset); } if(R[this->RCurrent].P) { --===============091939695370362617== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline _______________________________________________ Kernel-janitors mailing list Kernel-janitors@lists.osdl.org https://lists.osdl.org/mailman/listinfo/kernel-janitors --===============091939695370362617==--