Commit 3c84dc7e authored by Michal Simek's avatar Michal Simek Committed by Greg Kroah-Hartman

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: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 36bebcff
...@@ -269,7 +269,6 @@ int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data, ...@@ -269,7 +269,6 @@ int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data,
{ {
int status; int status;
s32 buffer_count = 0; s32 buffer_count = 0;
s32 num_writes = 0;
bool dirty = false; bool dirty = false;
u32 i; u32 i;
void __iomem *base_address = drvdata->base_address; void __iomem *base_address = drvdata->base_address;
...@@ -298,7 +297,6 @@ int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data, ...@@ -298,7 +297,6 @@ int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data,
} }
buffer_count = 0; buffer_count = 0;
num_writes++;
dirty = false; dirty = false;
} }
...@@ -328,7 +326,6 @@ int buffer_icap_get_configuration(struct hwicap_drvdata *drvdata, u32 *data, ...@@ -328,7 +326,6 @@ int buffer_icap_get_configuration(struct hwicap_drvdata *drvdata, u32 *data,
{ {
int status; int status;
s32 buffer_count = 0; s32 buffer_count = 0;
s32 read_count = 0;
u32 i; u32 i;
void __iomem *base_address = drvdata->base_address; void __iomem *base_address = drvdata->base_address;
...@@ -353,7 +350,6 @@ int buffer_icap_get_configuration(struct hwicap_drvdata *drvdata, u32 *data, ...@@ -353,7 +350,6 @@ int buffer_icap_get_configuration(struct hwicap_drvdata *drvdata, u32 *data,
} }
buffer_count = 0; buffer_count = 0;
read_count++;
} }
/* Copy data from bram */ /* Copy data from bram */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment