[common] remove all casts around malloc
This commit is contained in:
1 parent
81c38e825c
commit
2de9e3e9be
7 files changed
+8
-8
No files matched your search
@@ -171,7 +171,7 @@ bool ivshmemOpenDev(struct IVSHMEM * dev, const char * shmDevice)
|
||||
return false;
|
||||
}
|
||||
|
||||
struct IVSHMEMInfo * info = (struct IVSHMEMInfo *)malloc(sizeof(*info));
|
||||
struct IVSHMEMInfo * info = malloc(sizeof(*info));
|
||||
info->size = devSize;
|
||||
info->devFd = devFd;
|
||||
info->hasDMA = hasDMA;
|
||||
|
||||
Reference in new issue
Block a user