From f78dd386046f1a9c2f96884c105daffa70a6972f Mon Sep 17 00:00:00 2001 From: Cho KyongHo Date: Wed, 21 Feb 2018 21:55:22 +0900 Subject: [PATCH] android: ion: remove redundant statements Change-Id: Ibaef184155aaef44c6d471e3a1d567c21d3f9115 Signed-off-by: Cho KyongHo --- drivers/staging/android/ion/ion.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 4e5db84dec74..e02ef7aef6f0 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -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,12 +108,9 @@ static struct ion_buffer *ion_buffer_create(struct ion_heap *heap, goto err1; } - table = buffer->sg_table; buffer->dev = dev; buffer->size = len; - buffer->dev = dev; - buffer->size = len; INIT_LIST_HEAD(&buffer->iovas); mutex_init(&buffer->lock); mutex_lock(&dev->buffer_lock); -- 2.20.1