mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
staging: android: ion: remove redundant variable table
Variable table is being set but is never read, it is therefore redundant and can be removed. Cleans up clang warning: drivers/staging/android/ion/ion.c:112:2: warning: Value stored to 'table' is never read Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
dbc0f57200
commit
198277f29d
1 changed files with 0 additions and 2 deletions
|
|
@ -81,7 +81,6 @@ static struct ion_buffer *ion_buffer_create(struct ion_heap *heap,
|
|||
unsigned long flags)
|
||||
{
|
||||
struct ion_buffer *buffer;
|
||||
struct sg_table *table;
|
||||
int ret;
|
||||
|
||||
buffer = kzalloc(sizeof(*buffer), GFP_KERNEL);
|
||||
|
|
@ -109,7 +108,6 @@ static struct ion_buffer *ion_buffer_create(struct ion_heap *heap,
|
|||
goto err1;
|
||||
}
|
||||
|
||||
table = buffer->sg_table;
|
||||
buffer->dev = dev;
|
||||
buffer->size = len;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue