Skip to content

Commit

Permalink
staging: qlge: Remove useless memset
Browse files Browse the repository at this point in the history
This just repeats what the other memset a few lines above did.

Signed-off-by: Benjamin Poirier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
gobenji authored and gregkh committed Oct 4, 2019
1 parent ec705b9 commit 7be4c3f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/staging/qlge/qlge_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7be4c3f

Please sign in to comment.