[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200921082423.2590938-1-liushixin2@huawei.com>
Date: Mon, 21 Sep 2020 16:24:23 +0800
From: Liu Shixin <liushixin2@...wei.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Arve Hjønnevåg <arve@...roid.com>,
Todd Kjos <tkjos@...roid.com>,
Martijn Coenen <maco@...roid.com>,
Joel Fernandes <joel@...lfernandes.org>,
Christian Brauner <christian@...uner.io>,
"Hridya Valsaraju" <hridya@...gle.com>,
Suren Baghdasaryan <surenb@...gle.com>
CC: <devel@...verdev.osuosl.org>, <linux-kernel@...r.kernel.org>,
Liu Shixin <liushixin2@...wei.com>
Subject: [PATCH -next] binder: simplify the return expression of binder_mmap
Simplify the return expression.
Signed-off-by: Liu Shixin <liushixin2@...wei.com>
---
drivers/android/binder.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index 37a505c41dec..1f929e0cf39f 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -5204,10 +5204,7 @@ static int binder_mmap(struct file *filp, struct vm_area_struct *vma)
vma->vm_ops = &binder_vm_ops;
vma->vm_private_data = proc;
- ret = binder_alloc_mmap_handler(&proc->alloc, vma);
- if (ret)
- return ret;
- return 0;
+ return binder_alloc_mmap_handler(&proc->alloc, vma);
err_bad_arg:
pr_err("%s: %d %lx-%lx %s failed %d\n", __func__,
--
2.25.1
Powered by blists - more mailing lists