staging: android: ion: Remove duplicate ION_IOC_MAP
authorLaura Abbott <labbott@redhat.com>
Mon, 3 Apr 2017 18:57:53 +0000 (11:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 10:36:11 +0000 (12:36 +0200)
ION_IOC_MAP is the same as ION_IOC_SHARE. We really don't need two
identical interfaces. Remove it.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/compat_ion.c
drivers/staging/android/ion/ion-ioctl.c
drivers/staging/android/uapi/ion.h

index ae1ffc38940033b94620de96efffec8d468549cb..5037ddd0e2178bec11edde9a6a87ad7b6908c977 100644 (file)
@@ -144,7 +144,6 @@ long compat_ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
                                                        (unsigned long)data);
        }
        case ION_IOC_SHARE:
-       case ION_IOC_MAP:
                return filp->f_op->unlocked_ioctl(filp, cmd,
                                                (unsigned long)compat_ptr(arg));
        default:
index 7b54eea22932849f7ef47fb5888993a8c221a8da..a361724f0eca38b4530c072600b28fcb60d63371 100644 (file)
@@ -118,7 +118,6 @@ long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
                break;
        }
        case ION_IOC_SHARE:
-       case ION_IOC_MAP:
        {
                struct ion_handle *handle;
 
index 3a59044812b69b660fdcf4809335dea4d714d5be..abd72fda732a96c0230691450515507243f7ac0b 100644 (file)
@@ -163,16 +163,6 @@ struct ion_heap_query {
  */
 #define ION_IOC_FREE           _IOWR(ION_IOC_MAGIC, 1, struct ion_handle_data)
 
-/**
- * DOC: ION_IOC_MAP - get a file descriptor to mmap
- *
- * Takes an ion_fd_data struct with the handle field populated with a valid
- * opaque handle.  Returns the struct with the fd field set to a file
- * descriptor open in the current address space.  This file descriptor
- * can then be used as an argument to mmap.
- */
-#define ION_IOC_MAP            _IOWR(ION_IOC_MAGIC, 2, struct ion_fd_data)
-
 /**
  * DOC: ION_IOC_SHARE - creates a file descriptor to use to share an allocation
  *