bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/6] libdiskfs: remove dead assignment


From: Justus Winter
Subject: [PATCH 1/6] libdiskfs: remove dead assignment
Date: Sat, 16 Nov 2013 10:58:14 +0100

Found using the Clang Static Analyzer.

* libdiskfs/io-write.c (diskfs_S_io_write): Remove dead assignment.
---
 libdiskfs/io-write.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/libdiskfs/io-write.c b/libdiskfs/io-write.c
index 26e0be4..2967c4c 100644
--- a/libdiskfs/io-write.c
+++ b/libdiskfs/io-write.c
@@ -56,7 +56,6 @@ diskfs_S_io_write (struct protid *cred,
       goto out;
     }
 
-  err = 0;
   while (off + (off_t) datalen > np->allocsize)
     {
       err = diskfs_grow (np, off + datalen, cred);
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]