[PATCH] Eagle and ADI 930 usb adsl modem driver

Andrew Morton akpm at osdl.org
Wed Nov 2 00:34:23 EST 2005


matthieu castet <castet.matthieu at free.fr> wrote:
>
> >>+
>  >>+	*cmvs = (struct uea_cmvs *)(data + 1);
>  > 
>  > 
>  > That's a bit rude - asking the compiler to perform a structure copy from an
>  > odd address.  memcpy() would be saner.
>  > 
>  Could you elaborate a bit more ?
>  I don't see where there is a copy.
>  *cmvs is a pointer to the structure, not the structure. And when we 
>  parse the structure, we use get_unaligned functions.
> 
> 

Ah, I misread the code.



More information about the Usbatm mailing list