[Libguestfs] [PATCH nbdkit 5/5] FIX: Remove extra parens

Richard W.M. Jones rjones at redhat.com
Wed Jun 16 16:15:44 UTC 2021


---
 plugins/floppy/virtual-floppy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/floppy/virtual-floppy.c b/plugins/floppy/virtual-floppy.c
index 2d5fe72d..6eae5600 100644
--- a/plugins/floppy/virtual-floppy.c
+++ b/plugins/floppy/virtual-floppy.c
@@ -709,7 +709,7 @@ create_regions (struct virtual_floppy *floppy)
 
   /* Append region for empty data region if we have extra space. */
   if (floppy->data_used_clusters != floppy->data_clusters) {
-    uint64_t clusters = (floppy->data_clusters - floppy->data_used_clusters);
+    uint64_t clusters = floppy->data_clusters - floppy->data_used_clusters;
     if (append_region_len (&floppy->regions, "data padding",
                            clusters * CLUSTER_SIZE, 0, CLUSTER_SIZE,
                            region_zero) == -1)
-- 
2.32.0




More information about the Libguestfs mailing list