Subject: Re: [PATCH 3/6] Drivers: net: hyperv: Enable offloads on the host

From: Dan Carpenter <[email-masked]>
Date: Thu, 6 Mar 2014 22:36:55 +0300

On Thu, Mar 06, 2014 at 03:13:07AM -0800, K. Y. Srinivasan wrote:
> +	offload_params = (struct ndis_offload_params *)((ulong)set +
> +				set->info_buf_offset);

It's a bit simpler to do pointer math like this:

	offload_params = (void *)set + set->info_buf_offset;

regards,
dan carpenter