On Tue, 19 Oct 2004 13:44:34 -0700, Greg KH <[EMAIL PROTECTED]> wrote:

> > >   /* sd.c special-cases sector size of 0 to mean 512. Needed? Safe? */
> > > - nsec = be32_to_cpu(*(u32 *)p) + 1;
> > > - bsize = be32_to_cpu(*(u32 *)(p + 4));
> > > + nsec = be32_to_cpu(*(__be32 *)p) + 1;
> > > + bsize = be32_to_cpu(*(__be32 *)(p + 4));
> > >   switch (bsize) {
> > >   case 512:       shift = 0;      break;
> > >   case 1024:      shift = 1;      break;
> > 
> > I don't think this can be right. I only want it off by 1 sector, not
> > 1 kilobyte. Are you sure about this patch?
> 
> I only changed the u32 to __be32, nothing else.  This fixes the sparse
> endian warnings that the driver was spitting out.  It should not have
> changed any logic, right?

It was an attack of stupidity, sorry. I knew something was up.

-- Pete


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to