mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-05-05 12:22:53 +00:00
hv:fix "missing for discarded return value" for memset
No need to check the return value for memset
code like this:
int a(void) {
return 0;
}
int b(void){
a();
}
fix as follow:
int a(void) {
return 0;
}
int b(void){
(void)a();
}
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -45,7 +45,7 @@ int vprintf(const char *fmt, va_list args)
|
||||
int nchars = 0;
|
||||
|
||||
/* initialize parameters */
|
||||
memset(¶m, 0, sizeof(param));
|
||||
(void)memset(¶m, 0, sizeof(param));
|
||||
param.emit = charout;
|
||||
param.data = &nchars;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user