drivers/staging/android/ashmem.c: Cleanups
authorTracey Dent <tdent48227@gmail.com>
Mon, 23 Jan 2012 02:28:44 +0000 (21:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 00:47:51 +0000 (16:47 -0800)
Minor cleanups that consist of removal of a whitespace and
make file_operations const.

Signed-off-by: Tracey Dent <tdent48227@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ashmem.c

index 99052bfd3a2d0d6752ab935cdd48d79bd9b51066..9f1f27e7c86e2f59cbec618eb63726ea042c34e2 100644 (file)
@@ -315,7 +315,7 @@ static int ashmem_mmap(struct file *file, struct vm_area_struct *vma)
        get_file(asma->file);
 
        /*
-        * XXX - Reworked to use shmem_zero_setup() instead of 
+        * XXX - Reworked to use shmem_zero_setup() instead of
         * shmem_set_file while we're in staging. -jstultz
         */
        if (vma->vm_flags & VM_SHARED) {
@@ -680,7 +680,7 @@ static long ashmem_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
        return ret;
 }
 
-static struct file_operations ashmem_fops = {
+static const struct file_operations ashmem_fops = {
        .owner = THIS_MODULE,
        .open = ashmem_open,
        .release = ashmem_release,