char: xilinx_hwicap: Remove pointless local variables
authorMichal Simek <michal.simek@xilinx.com>
Mon, 23 Jan 2017 11:53:36 +0000 (12:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2017 10:41:44 +0000 (11:41 +0100)
commit3c84dc7e79f5bd676599a79a6bfed4d30a38ae30
tree1967e3365cf01281a48e5bdbb57666d79776a409
parent36bebcff6f3895384fd2566f4c4adb91cfdfecdb
char: xilinx_hwicap: Remove pointless local variables

Remove unused variables which generates these warnings:
[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.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/xilinx_hwicap/buffer_icap.c