mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
tmem: Remove xc_tmem_control mystical arg3
It mentions it but it is never used. The hypercall interface knows nothing of this sort of thing either. Lets just remove it. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Acked-by: Wei Liu <wei.liu2@citrix.com> [release + toolstack] Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
1682d2fdf6
commit
54a51b1766
5 files changed
+29
-32
No files matched your search
@@ -1799,21 +1799,20 @@ static PyObject *pyxc_tmem_control(XcObject *self,
|
||||
uint32_t cli_id;
|
||||
uint32_t arg1;
|
||||
uint32_t arg2;
|
||||
uint64_t arg3;
|
||||
char *buf;
|
||||
char _buffer[32768], *buffer = _buffer;
|
||||
int rc;
|
||||
|
||||
static char *kwd_list[] = { "pool_id", "subop", "cli_id", "arg1", "arg2", "arg3", "buf", NULL };
|
||||
static char *kwd_list[] = { "pool_id", "subop", "cli_id", "arg1", "arg2", "buf", NULL };
|
||||
|
||||
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiiiis", kwd_list,
|
||||
&pool_id, &subop, &cli_id, &arg1, &arg2, &arg3, &buf) )
|
||||
&pool_id, &subop, &cli_id, &arg1, &arg2, &buf) )
|
||||
return NULL;
|
||||
|
||||
if ( (subop == TMEMC_LIST) && (arg1 > 32768) )
|
||||
arg1 = 32768;
|
||||
|
||||
if ( (rc = xc_tmem_control(self->xc_handle, pool_id, subop, cli_id, arg1, arg2, arg3, buffer)) < 0 )
|
||||
if ( (rc = xc_tmem_control(self->xc_handle, pool_id, subop, cli_id, arg1, arg2, buffer)) < 0 )
|
||||
return Py_BuildValue("i", rc);
|
||||
|
||||
switch (subop) {
|
||||
|
||||