Max Reitz
8fcffa9853
qcow2: Return useful error code in refcount_init()
...
If bdrv_pread() returns an error, it is very unlikely that it was
ENOMEM. In this case, the return value should be passed along; as
bdrv_pread() will always either return the number of bytes read or a
negative value (the error code), the condition for checking whether
bdrv_pread() failed can be simplified (and clarified) as well.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
2014-08-15 15:07:16 +02:00
..
2014-08-15 15:07:14 +02:00
2014-07-09 15:50:11 +02:00
2014-06-04 09:56:11 +02:00
2014-06-04 09:56:11 +02:00
2014-08-15 15:07:15 +02:00
2014-08-15 15:07:15 +02:00
2014-07-01 10:47:01 +02:00
2014-07-01 10:15:34 +02:00
2014-08-15 15:07:15 +02:00
2014-08-15 15:07:15 +02:00
2014-06-16 17:23:21 +08:00
2014-08-15 15:07:15 +02:00
2014-07-15 15:34:13 +02:00
2014-08-15 15:07:14 +02:00
2014-08-15 15:07:16 +02:00
2014-06-04 09:56:11 +02:00
2014-06-04 09:56:11 +02:00
2014-06-04 09:56:11 +02:00
2014-08-15 15:07:15 +02:00
2014-08-15 15:07:15 +02:00
2014-08-15 15:07:14 +02:00
2014-08-15 15:07:15 +02:00
2014-08-15 15:07:15 +02:00
2014-08-15 15:07:16 +02:00
2014-08-15 15:07:15 +02:00
2014-08-15 15:07:15 +02:00
2014-04-01 15:22:35 +02:00
2014-08-15 15:07:15 +02:00
2014-08-15 15:07:15 +02:00
2014-06-04 09:56:11 +02:00
2014-08-15 15:07:15 +02:00
2014-07-14 12:03:20 +02:00
2014-06-27 14:18:17 +02:00
2014-07-18 13:18:43 +01:00
2014-07-07 11:05:17 +02:00
2014-08-15 15:07:15 +02:00
2014-06-16 17:23:21 +08:00
2014-08-15 15:07:16 +02:00
2014-06-23 16:36:13 +08:00
2014-02-17 11:57:23 -05:00
2014-06-16 17:23:21 +08:00
2014-07-18 13:18:43 +01:00
2014-08-15 15:07:16 +02:00
2014-08-15 15:07:14 +02:00
2014-08-15 15:07:16 +02:00
2014-08-15 15:07:16 +02:00
2014-08-15 15:07:14 +02:00
2014-08-15 15:07:16 +02:00
2014-08-15 15:07:16 +02:00
2014-06-16 17:23:21 +08:00
2014-08-15 15:07:16 +02:00