OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec705b9
)
staging: qlge: Remove useless memset
author
Benjamin Poirier
<bpoirier@suse.com>
Fri, 27 Sep 2019 10:12:07 +0000
(19:12 +0900)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 15:17:46 +0000
(17:17 +0200)
This just repeats what the other memset a few lines above did.
Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
Link:
https://lore.kernel.org/r/20190927101210.23856-14-bpoirier@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/qlge_main.c
patch
|
blob
|
history
diff --git
a/drivers/staging/qlge/qlge_main.c
b/drivers/staging/qlge/qlge_main.c
index
ef33db1
..
8da5969
100644
(file)
--- a/
drivers/staging/qlge/qlge_main.c
+++ b/
drivers/staging/qlge/qlge_main.c
@@
-2812,7
+2812,6
@@
static int qlge_init_bq(struct qlge_bq *bq)
buf_ptr = bq->base;
bq_desc = &bq->queue[0];
for (i = 0; i < QLGE_BQ_LEN; i++, buf_ptr++, bq_desc++) {
- memset(bq_desc, 0, sizeof(*bq_desc));
bq_desc->index = i;
bq_desc->buf_ptr = buf_ptr;
}