]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf: remove redundant initialization of sg_table
authorColin Ian King <colin.king@canonical.com>
Thu, 14 Sep 2017 23:05:16 +0000 (00:05 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 Sep 2017 20:02:07 +0000 (22:02 +0200)
commitdabd9adfc92f152a74a24a0cb07b1dafb5d1e65e
treef3283cfe28438e6425697efdb240978159afb280
parent3a63491e67da3b290e4756134d306c139c71f313
dma-buf: remove redundant initialization of sg_table

sg_table is being initialized and is never read before it is updated
again later on, hence making the initialization redundant. Remove
the initialization.

Detected by clang scan-build:
"warning: Value stored to 'sg_table' during its initialization is
never read"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20170914230516.6056-1-colin.king@canonical.com
drivers/dma-buf/dma-buf.c