mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
virNodeSuspend: Remove unused 'flags'
Remove the unused argument and bump the 'virCheckFlags' calls to the top level. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
1 parent
f4b5da14b6
commit
a5c6aff2c1
4 files changed
+8
-8
No files matched your search
@@ -4891,10 +4891,12 @@ lxcNodeSuspendForDuration(virConnectPtr conn,
|
|||||||
unsigned long long duration,
|
unsigned long long duration,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
|
virCheckFlags(0, -1);
|
||||||
|
|
||||||
if (virNodeSuspendForDurationEnsureACL(conn) < 0)
|
if (virNodeSuspendForDurationEnsureACL(conn) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return virNodeSuspend(target, duration, flags);
|
return virNodeSuspend(target, duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16494,10 +16494,12 @@ qemuNodeSuspendForDuration(virConnectPtr conn,
|
|||||||
unsigned long long duration,
|
unsigned long long duration,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
|
virCheckFlags(0, -1);
|
||||||
|
|
||||||
if (virNodeSuspendForDurationEnsureACL(conn) < 0)
|
if (virNodeSuspendForDurationEnsureACL(conn) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return virNodeSuspend(target, duration, flags);
|
return virNodeSuspend(target, duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|||||||
@@ -138,16 +138,13 @@ static void virNodeSuspendHelper(void *cmdString)
|
|||||||
* operation is still in progress.
|
* operation is still in progress.
|
||||||
*/
|
*/
|
||||||
int virNodeSuspend(unsigned int target,
|
int virNodeSuspend(unsigned int target,
|
||||||
unsigned long long duration,
|
unsigned long long duration)
|
||||||
unsigned int flags)
|
|
||||||
{
|
{
|
||||||
static virThread thread;
|
static virThread thread;
|
||||||
const char *cmdString = NULL;
|
const char *cmdString = NULL;
|
||||||
unsigned int supported;
|
unsigned int supported;
|
||||||
VIR_LOCK_GUARD lock = { NULL };
|
VIR_LOCK_GUARD lock = { NULL };
|
||||||
|
|
||||||
virCheckFlags(0, -1);
|
|
||||||
|
|
||||||
if (virNodeSuspendGetTargetMask(&supported) < 0)
|
if (virNodeSuspendGetTargetMask(&supported) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
int virNodeSuspend(unsigned int target,
|
int virNodeSuspend(unsigned int target,
|
||||||
unsigned long long duration,
|
unsigned long long duration);
|
||||||
unsigned int flags);
|
|
||||||
|
|
||||||
int virNodeSuspendGetTargetMask(unsigned int *bitmask);
|
int virNodeSuspendGetTargetMask(unsigned int *bitmask);
|
||||||
Reference in new issue
Block a user