]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
hostap: remove set but not used variable 'copied' in prism2_io_debug_proc_read
authorzhong jiang <zhongjiang@huawei.com>
Tue, 3 Sep 2019 07:57:10 +0000 (15:57 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 6 Sep 2019 14:09:37 +0000 (17:09 +0300)
Obviously, variable 'copied' is initialized to zero. But it is not used.
hence just remove it.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intersil/hostap/hostap_proc.c

index 703d74cea3c20e3cbd48849eb591df52c673ae02..6151d8db59240f7dfa86a4dddc2308826d3c7d5c 100644 (file)
@@ -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;
        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) {
                *eof = 1;
@@ -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;
        }
 
-       copied = 0;
        start_bytes = (PRISM2_IO_DEBUG_SIZE - head) * 4;
        left = count;