Re: [PATCHv2 2/2] USB CDC NCM host driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 25 Nov 2010 15:14:32 +0100
Alexey Orishko <alexey.orishko@xxxxxxxxx> wrote:

> +/*
> + * We need to align the beginning of the IP packet (not the Ethernet framing).
> + * The following macro aligns the given offset to the given remainder
> + * and modulus, which must be power of two.
> + */
> +#define	CDC_NCM_ALIGN(rem, offset, mod)	\
> +	((long)(((long)(rem)) - ((long)((-(long)(offset)) & (-(long)(mod))))))

Isn't existing PTR_ALIGN macro sufficient?

-- 
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux