mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
libxc: remove unnecessary double indirection from xc_readconsolering
The double indirection has been unnecessary since 9867:ec61a8c25429, there is no possibility of the buffer being reallocated now. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
f114466a23
commit
e43181a5eb
5 files changed
+6
-7
No files matched your search
@@ -1116,7 +1116,7 @@ static PyObject *pyxc_readconsolering(XcObject *self,
|
||||
!str )
|
||||
return NULL;
|
||||
|
||||
ret = xc_readconsolering(self->xc_handle, &str, &count, clear,
|
||||
ret = xc_readconsolering(self->xc_handle, str, &count, clear,
|
||||
incremental, &index);
|
||||
if ( ret < 0 )
|
||||
return pyxc_error_to_exception(self->xc_handle);
|
||||
@@ -1133,7 +1133,7 @@ static PyObject *pyxc_readconsolering(XcObject *self,
|
||||
|
||||
str = ptr + count;
|
||||
count = size - count;
|
||||
ret = xc_readconsolering(self->xc_handle, &str, &count, clear,
|
||||
ret = xc_readconsolering(self->xc_handle, str, &count, clear,
|
||||
1, &index);
|
||||
if ( ret < 0 )
|
||||
break;
|
||||
|
||||