prepare-root: Remove unused variable
authorColin Walters <walters@verbum.org>
Tue, 18 Aug 2020 23:35:38 +0000 (23:35 +0000)
committerColin Walters <walters@verbum.org>
Tue, 18 Aug 2020 23:35:38 +0000 (23:35 +0000)
Should quiet Coverity.

src/switchroot/ostree-prepare-root.c

index 8a68e1f4fa6a960460fc4ed52036c221643f580e..f7e4fe47c3670999b09d0d1cd36ae30572b5c52c 100644 (file)
@@ -101,10 +101,9 @@ sysroot_is_configured_ro (const char *sysroot)
   bool ret = false;
   char *line = NULL;
   size_t len = 0;
-  ssize_t nread;
   /* Note getline() will reuse the previous buffer */
   bool in_sysroot = false;
-  while ((nread = getline (&line, &len, f)) != -1)
+  while (getline (&line, &len, f) != -1)
     {
       /* This is an awful hack to avoid depending on GLib in the
        * initramfs right now.