]> git.proxmox.com Git - pve-cluster.git/commitdiff
pmxcfs: drop unused variable from full_write
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 1 Jul 2023 11:28:48 +0000 (13:28 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 1 Jul 2023 14:35:24 +0000 (16:35 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/pmxcfs/cfs-utils.c

index 5770833403478d2f0005c8a4b725c2aceddb6b4f..2487ba2c919aa65f342c5b930020d09a24ebe077 100644 (file)
@@ -200,14 +200,10 @@ safe_read(
 
 gboolean 
 full_write(
-       int fd, 
-       const char *buf, 
+       int fd,
+       const char *buf,
        size_t len)
 {
-       size_t total;
-
-       total = 0;
-
        while (len > 0) {
                ssize_t n;
                do {
@@ -218,7 +214,6 @@ full_write(
                        break;
                
                buf += n;
-               total += n;
                len -= n;
        }