Commit 64827a6a authored by zhong jiang's avatar zhong jiang Committed by Kalle Valo

hostap: remove set but not used variable 'copied' in prism2_io_debug_proc_read

Obviously, variable 'copied' is initialized to zero. But it is not used.
hence just remove it.
Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 2f8c8e62
...@@ -234,7 +234,7 @@ static int prism2_io_debug_proc_read(char *page, char **start, off_t off, ...@@ -234,7 +234,7 @@ static int prism2_io_debug_proc_read(char *page, char **start, off_t off,
{ {
local_info_t *local = (local_info_t *) data; local_info_t *local = (local_info_t *) data;
int head = local->io_debug_head; int head = local->io_debug_head;
int start_bytes, left, copy, copied; int start_bytes, left, copy;
if (off + count > PRISM2_IO_DEBUG_SIZE * 4) { if (off + count > PRISM2_IO_DEBUG_SIZE * 4) {
*eof = 1; *eof = 1;
...@@ -243,7 +243,6 @@ static int prism2_io_debug_proc_read(char *page, char **start, off_t off, ...@@ -243,7 +243,6 @@ static int prism2_io_debug_proc_read(char *page, char **start, off_t off,
count = PRISM2_IO_DEBUG_SIZE * 4 - off; count = PRISM2_IO_DEBUG_SIZE * 4 - off;
} }
copied = 0;
start_bytes = (PRISM2_IO_DEBUG_SIZE - head) * 4; start_bytes = (PRISM2_IO_DEBUG_SIZE - head) * 4;
left = count; left = count;
......
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