From: Cho KyongHo Date: Wed, 21 Feb 2018 12:55:22 +0000 (+0900) Subject: android: ion: remove redundant statements X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f78dd386046f1a9c2f96884c105daffa70a6972f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git android: ion: remove redundant statements Change-Id: Ibaef184155aaef44c6d471e3a1d567c21d3f9115 Signed-off-by: Cho KyongHo --- 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);