android: ion: remove redundant statements
authorCho KyongHo <pullip.cho@samsung.com>
Wed, 21 Feb 2018 12:55:22 +0000 (21:55 +0900)
committerSangwook Ju <sw.ju@samsung.com>
Mon, 14 May 2018 10:45:24 +0000 (19:45 +0900)
Change-Id: Ibaef184155aaef44c6d471e3a1d567c21d3f9115
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/staging/android/ion/ion.c

index 4e5db84dec7458d0f1bd13f30c22ddeb4a617b9d..e02ef7aef6f03d26125dfb1afe28f4afc5be28cd 100644 (file)
@@ -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);