]> git.baikalelectronics.ru Git - kernel.git/commit
lib/scatterlist.c: avoid a double memset
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 16 Oct 2020 03:11:25 +0000 (20:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Oct 2020 18:11:20 +0000 (11:11 -0700)
commitf23d6902477bfe496bdc5a6da7755040432e6b96
tree32e14e0d8fc71b03a567c34c2249bb2380dfeb49
parentcdd5e37ea8ba6688c1c34faa162cec0e80c91fd3
lib/scatterlist.c: avoid a double memset

'sgl' is zeroed a few lines below in 'sg_init_table()'. There is no need to
clear it twice.

Remove the redundant initialization.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/20200920071544.368841-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/scatterlist.c