Michal Privoznik
3b4df5d350
Drop needless ret variable
...
In few places we have the following code pattern:
int ret;
... /* @ret is not accessed here */
ret = f(...);
return ret;
This pattern can be written less verbose:
...
return f(...);
This patch was generated with following coccinelle spatch:
@@
type T;
constant C;
expression f;
identifier ret;
@@
-T ret = C;
... when != ret
-ret = f;
-return ret;
+return f;
Afterwards I needed to fix a few places, e.g. comment in
virDomainNetIPParseXML() was removed too because coccinelle
thinks it refers to @ret while in fact it doesn't. Also in few
places it replaced @ret declaration with a few spaces instead of
removing the line. But nothing terribly wrong.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
2019-10-24 08:10:37 +02:00
..
2018-01-11 18:53:04 +01:00
2019-09-30 12:27:41 +02:00
2019-10-15 11:25:25 +02:00
2019-08-22 17:05:17 +02:00
2009-09-21 14:41:45 +01:00
2009-09-21 14:41:45 +01:00
2009-09-21 14:41:45 +01:00
2009-09-21 14:41:45 +01:00
2019-08-09 14:06:31 +01:00
2018-04-24 10:46:41 +02:00
2018-04-12 16:52:01 +01:00
2019-10-14 10:54:42 +01:00
2009-09-21 14:41:45 +01:00
2019-10-20 14:37:16 +02:00
2019-07-26 16:48:58 -05:00
2019-10-21 12:51:59 +02:00
2019-08-09 09:18:19 +02:00
2019-10-24 08:10:37 +02:00
2019-08-09 09:05:27 +02:00
2019-10-24 08:10:37 +02:00
2019-08-09 09:17:44 +02:00
2019-10-21 12:51:59 +02:00
2019-08-09 09:07:51 +02:00
2019-10-21 12:51:59 +02:00
2019-08-09 09:09:59 +02:00
2019-10-24 08:10:37 +02:00
2019-08-09 09:10:08 +02:00
2019-10-21 12:51:59 +02:00
2019-08-09 09:15:36 +02:00
2019-10-24 08:10:37 +02:00
2019-08-09 09:20:13 +02:00
2019-10-24 08:10:37 +02:00
2019-08-09 09:16:28 +02:00
2019-10-21 12:51:59 +02:00
2019-08-09 09:17:06 +02:00
2019-10-21 12:51:59 +02:00
2019-08-09 09:07:02 +02:00
2019-10-21 12:51:59 +02:00
2019-08-09 09:18:54 +02:00
2019-10-15 11:25:25 +02:00
2019-06-19 17:12:34 +02:00
2019-10-20 14:37:16 +02:00
2019-10-15 11:25:22 +02:00
2019-10-20 14:37:16 +02:00
2019-06-19 17:12:34 +02:00
2019-10-15 16:14:19 +02:00
2019-10-15 11:25:25 +02:00
2019-06-19 17:12:34 +02:00
2019-10-15 11:25:25 +02:00
2019-06-19 17:12:34 +02:00
2019-10-24 08:10:37 +02:00
2019-06-19 17:12:34 +02:00
2019-10-20 14:37:16 +02:00
2019-08-09 09:03:53 +02:00
2019-10-15 11:25:25 +02:00
2019-06-19 17:12:34 +02:00
2019-10-20 14:37:16 +02:00
2019-06-19 17:12:34 +02:00
2019-10-16 12:06:43 +02:00
2019-06-19 17:12:34 +02:00
2019-10-20 14:37:16 +02:00
2019-06-19 17:12:34 +02:00
2019-10-15 11:25:25 +02:00
2019-10-16 12:06:43 +02:00
2019-10-20 14:37:16 +02:00
2019-06-19 17:12:34 +02:00
2019-10-20 14:37:16 +02:00
2019-07-26 16:48:58 -05:00
2019-09-12 16:06:57 +01:00
2019-10-21 12:51:59 +02:00
2019-06-19 17:12:34 +02:00
2019-10-20 14:37:16 +02:00
2019-06-19 17:12:34 +02:00
2019-04-15 17:37:52 +02:00
2018-09-20 10:16:38 +02:00
2019-06-19 17:12:34 +02:00
2019-10-15 16:14:19 +02:00
2019-10-15 16:14:18 +02:00
2018-10-05 15:53:29 +02:00
2019-06-19 17:12:34 +02:00
2018-10-05 15:53:29 +02:00
2019-06-19 17:12:34 +02:00
2018-09-20 10:16:39 +02:00
2017-10-16 10:22:34 +01:00
2019-10-21 12:51:59 +02:00
2019-09-30 12:08:30 +01:00
2016-06-10 11:03:02 +01:00
2017-10-16 10:22:34 +01:00
2019-07-01 17:20:32 +02:00
2017-10-16 10:22:34 +01:00
2016-04-25 15:40:43 +02:00
2017-10-16 10:22:34 +01:00
2019-09-12 16:06:57 +01:00
2018-07-19 16:16:57 -04:00
2019-10-21 12:51:59 +02:00
2019-06-19 17:12:34 +02:00
2019-10-24 08:10:37 +02:00
2019-10-20 14:37:17 +02:00