mirror of https://gitee.com/openkylin/libvirt.git
vbox: remove VBoxCGlueTerm
cppcheck reports:
src/vbox/vbox_XPCOMCGlue.c:226:21: style:
The statement 'if (hVBoxXPCOMC!=NULL) hVBoxXPCOMC=NULL' is
logically equivalent to 'hVBoxXPCOMC=NULL'.
[duplicateConditionalAssign]
It does not matter anyway because this function
is never called.
Fixes: e1506cb4eb
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
bb93310aa8
commit
ef2532fcbd
|
@ -217,25 +217,6 @@ VBoxCGlueInit(unsigned int *version)
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Terminate the C glue library.
|
||||
*/
|
||||
void
|
||||
VBoxCGlueTerm(void)
|
||||
{
|
||||
if (hVBoxXPCOMC != NULL) {
|
||||
#if 0 /* VBoxRT.so doesn't like being reloaded. See @bugref{3725}. */
|
||||
dlclose(g_hVBoxXPCOMC);
|
||||
#endif
|
||||
hVBoxXPCOMC = NULL;
|
||||
}
|
||||
|
||||
pVBoxFuncs_v2_2 = NULL;
|
||||
g_pfnGetFunctions = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* In XPCOM an array is represented by 1) a pointer to an array of pointers
|
||||
* that point to the items and 2) an unsigned int representing the number of
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
extern PFNVBOXGETXPCOMCFUNCTIONS g_pfnGetFunctions;
|
||||
|
||||
int VBoxCGlueInit(unsigned int *version);
|
||||
void VBoxCGlueTerm(void);
|
||||
|
||||
typedef struct _vboxArray vboxArray;
|
||||
|
||||
|
|
Loading…
Reference in New Issue