Michal Privoznik
01a2339e1f
virsh-domain: Fix @ret handling in cmdSetmem and cmdSetmaxmem
...
These functions initialize @ret to true and only after something
fails either they call cleanup code (which consists only from
virshDomainFree()) and return false, or they set ret = false and
carry on (when the failure occurred close to cleanup code).
Switch them to the usual pattern in which ret is initialized to
failure, goto cleanup is used and ret is set to true only after
everything succeeded.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2021-05-19 15:31:36 +02:00
..
2021-04-22 11:01:27 +02:00
2021-01-19 16:25:50 +01:00
2021-04-13 11:21:00 +02:00
2021-03-02 09:42:38 +01:00
2019-08-09 14:06:31 +01:00
2020-11-04 12:18:05 +01:00
2020-12-07 10:38:44 +00:00
2021-04-15 15:42:21 +02:00
2020-09-14 15:52:40 +02:00
2019-12-10 12:41:56 +01:00
2021-04-19 16:09:56 -04:00
2021-04-13 17:00:38 +02:00
2019-08-09 09:18:19 +02:00
2021-04-22 13:46:48 +02:00
2021-04-22 13:46:44 +02:00
2021-04-13 17:00:38 +02:00
2020-11-10 18:34:02 +01:00
2021-04-13 17:00:38 +02:00
2020-11-10 18:34:11 +01:00
2021-04-13 17:00:38 +02:00
2020-11-10 18:34:23 +01:00
2021-04-13 17:00:38 +02:00
2019-08-09 09:10:08 +02:00
2021-04-13 17:00:38 +02:00
2019-08-09 09:15:36 +02:00
2021-04-13 17:00:38 +02:00
2019-08-09 09:20:13 +02:00
2021-04-13 17:00:38 +02:00
2019-08-09 09:16:28 +02:00
2021-04-13 17:00:38 +02:00
2019-08-09 09:17:06 +02:00
2021-04-13 17:00:38 +02:00
2019-08-09 09:07:02 +02:00
2021-02-11 17:05:34 +01:00
2019-08-09 09:18:54 +02:00
2021-04-13 17:00:38 +02:00
2021-04-19 11:04:53 +02:00
2020-01-07 16:12:55 +01:00
2021-05-19 15:31:36 +02:00
2020-11-10 18:34:26 +01:00
2019-10-15 16:14:19 +02:00
2021-04-13 17:00:38 +02:00
2020-08-03 15:30:40 +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
2020-08-03 15:30:40 +02:00
2021-04-19 16:09:56 -04:00
2020-08-03 15:30:40 +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-04-13 17:00:38 +02:00
2020-05-05 14:45:58 +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
2020-09-02 10:28:10 +02:00
2021-04-21 10:02:09 +02:00
2020-01-29 14:51:39 +00:00
2019-09-12 16:06:57 +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-01-26 16:46:41 +01:00