[PATCH 0/2] util/compatfd.c: Fixed styling and replaced malloc

Mahmoud Mandour posted 2 patches 3 years, 1 month ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210315105814.5188-1-ma.mandourr@gmail.com
util/compatfd.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
[PATCH 0/2] util/compatfd.c: Fixed styling and replaced malloc
Posted by Mahmoud Mandour 3 years, 1 month ago
In this small series, I fix two styling issues that were causing
errors when the checkpatch.pl scritp was run against the 
file util/compatfd.c. 
Also, I replace a call to malloc() and its respective call 
to free() with GLib's allocation and deallocation.

Used g_malloc() because the allocation is already small and its better
if the system aborts on failure of such small allocations. 

Mahmoud Mandour (2):
  util/compatfd.c: Fixed style issues
  util/compatfd.c: Replaced a malloc call with g_malloc.

 util/compatfd.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

-- 
2.25.1