Re: linux-4.10-rc5/drivers/char/xilinx_hwicap/buffer_icap.c: 2 * pointless local variables ?

From: Michal Simek
Date: Mon Jan 23 2017 - 06:54:32 EST


On 23.1.2017 12:39, David Binderman wrote:
>
> Hello there,
>
> [linux-4.10-rc5/drivers/char/xilinx_hwicap/buffer_icap.c:301]: (style) Variable 'num_writes' is modified but its new value is never used.
> [linux-4.10-rc5/drivers/char/xilinx_hwicap/buffer_icap.c:356]: (style) Variable 'read_count' is modified but its new value is never used.
>
> Suggest either use these local variables in some way or delete them.
>

I have sent patch which removes them.

Thanks,
Michal