Michal Privoznik
857df2fe50
lib: Drop intermediary return variables
...
In a few places we declare a variable (which is optionally
followed by a code not touching it) then set the variable to a
value and return the variable immediately. It's obvious that the
variable is needless and the value can be returned directly
instead.
This patch was generated using this semantic patch:
@@
type T;
identifier ret;
expression E;
@@
- T ret;
... when != ret
when strict
- ret = E;
- return ret;
+ return E;
After that I fixed couple of formatting issues because coccinelle
formatted some lines differently than our coding style.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2021-10-25 12:48:46 +02:00
..
2021-08-12 13:12:29 +02:00
2021-04-13 17:00:38 +02:00
2021-08-23 13:59:28 +02:00
2021-08-23 13:59:28 +02:00
2021-08-23 16:59:23 +02:00
2021-04-13 17:00:38 +02:00
2021-10-01 10:52:35 +02:00
2021-04-13 17:00:38 +02:00
2021-05-20 11:52:46 +02:00
2021-10-12 10:26:04 +02:00
2021-10-25 12:48:46 +02:00
2021-10-20 16:53:01 +02:00
2021-05-21 14:29:09 +02:00
2021-04-13 17:00:38 +02:00
2021-07-21 13:30:30 +02:00
2021-07-21 13:30:30 +02:00
2021-10-25 12:48:46 +02:00
2021-10-20 16:53:09 +02:00
2021-10-01 11:04:47 +02:00
2021-10-01 11:04:47 +02:00
2021-07-19 09:39:15 +02:00
2021-04-13 17:00:38 +02:00
2021-10-15 09:40:55 +02:00
2021-09-09 10:17:28 +02:00
2021-08-20 15:41:21 +02:00
2021-08-20 15:41:21 +02:00
2021-01-22 11:10:27 +01:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-09-10 17:38:06 +02:00
2021-09-10 17:38:06 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-10-21 17:34:04 +01:00
2021-10-21 17:34:04 +01:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-06-15 10:41:22 +02:00
2021-06-15 10:41:22 +02:00
2021-08-20 15:38:53 +02:00
2021-08-20 15:38:53 +02:00
2021-07-23 11:27:05 +02:00
2021-04-13 17:00:38 +02:00
2021-08-04 10:39:27 +02:00
2021-07-23 11:27:05 +02:00
2021-04-13 17:00:38 +02:00
2021-08-06 08:53:26 +02:00
2021-04-13 17:00:38 +02:00
2021-08-20 15:41:22 +02:00
2021-08-20 15:41:22 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-08-23 16:59:23 +02:00
2021-06-18 09:16:16 +02:00
2021-05-20 11:52:44 +02:00
2021-05-20 11:52:41 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-08-25 09:57:51 +02:00
2021-08-25 09:57:51 +02:00
2021-04-22 11:24:53 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-21 10:02:09 +02:00
2021-07-12 16:34:07 +02:00
2021-07-23 11:30:49 +02:00
2021-04-13 17:00:38 +02:00
2021-07-21 13:30:14 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-07-23 11:31:03 +02:00
2021-04-13 17:00:38 +02:00
2021-08-06 08:53:25 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-08-20 15:41:21 +02:00
2021-04-13 17:00:38 +02:00
2021-10-25 12:48:46 +02:00
2021-04-13 17:00:38 +02:00
2021-09-06 17:08:59 +02:00
2021-09-06 17:08:59 +02:00
2021-10-21 17:34:04 +01:00
2021-09-14 14:24:00 -05:00
2021-09-06 17:08:59 +02:00
2021-09-06 17:08:59 +02:00
2021-10-25 12:48:46 +02:00
2021-04-13 17:00:38 +02:00
2021-07-19 09:39:15 +02:00
2021-04-13 17:00:38 +02:00
2021-10-25 12:48:46 +02:00
2021-04-13 17:00:38 +02:00
2021-08-17 18:27:13 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-08-17 18:27:13 +02:00
2021-04-13 17:00:38 +02:00