[PATCH] dma-buf: remove redundant initialization of sg_table

Chris Wilson chris at chris-wilson.co.uk
Fri Sep 15 08:48:48 UTC 2017


Quoting Colin King (2017-09-15 00:05:16)
> From: Colin Ian King <colin.king at canonical.com>
> 
> 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 at canonical.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris


More information about the dri-devel mailing list