diff options
| author | Gargi Sharma <gs051095@gmail.com> | 2017-02-17 20:17:21 +0300 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2017-02-18 21:58:08 +0300 |
| commit | fb364cea3d245fff5cb4c953c8c9a4b1efcbe4c6 (patch) | |
| tree | 94950bad1b0b6aec42fa17757054797596fe157c /include/linux/stackprotector.h | |
| parent | bf0adab4cd0d69eb22495f89e53f79941bb62300 (diff) | |
| download | linux-fb364cea3d245fff5cb4c953c8c9a4b1efcbe4c6.tar.xz | |
staging: iio: compress return logic
Simplify function returns by merging assignment and return.
Found with Coccinelle.
Semantic patch:
@@
local idexpression ret;
expression e;
@@
-ret =
+return
e;
-return ret;
Signed-off-by: Gargi Sharma <gs051095@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
