Skip to contentSkip to conversation

Staging: android: ashmem: fixed coding style isue

PATCH In review Alexandru Guduleasa 2 participants 2 messages Feb 15, 2012 – Mar 7, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: android: ashmem: fixed coding style isue

Remove trailing whitespace.
Add const keyword.

---
 drivers/staging/android/ashmem.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/android/ashmem.c +2 -2
index 99052bf..9f1f27e 100644
@@ -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,
Signature · 1 line
1.7.5.4
maintainer
#1 lore raw
Quoted 4 lines · Alexandru Guduleasa

Remove trailing whitespace.
Add const keyword.

Sorry, someone has already beat you to this fix, it's been in the linux-next tree for a while now.

greg k-h