Re: [PATCH] 2.5.14 IDE CD-ROM PIO mode

Christoph Hellwig
2002-05-07T11:41:30Z

On Tue, May 07, 2002 at 11:57:20AM +0200, Martin Dalecki wrote:
> > @@ -962,7 +962,7 @@
> >
> > /* First, figure out if we need to bit-bucket
> > any of the leading sectors. */
> > - nskip = MIN(rq->current_nr_sectors - bio_sectors(rq->bio), sectors_to_transfer);
> > + nskip = MIN((int)(rq->current_nr_sectors - bio_sectors(rq->bio)), sectors_to_transfer);

What about a s/MIN/min/g in the idea driver to easily catch such bugs?