lib/commonio: drop dead store

commonio.c:522:15: warning: Although the value stored to 'cp' is used in the enclosing expression, the value is never actually read from 'cp' [deadcode.DeadStores]

Reviewed-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Christian Göttsche
2023-08-21 14:05:27 -05:00
committed by Serge Hallyn
parent 931e7c0c2f
commit a08021eb0e
+1 -1
View File
@@ -646,7 +646,7 @@ int commonio_open (struct commonio_db *db, int mode)
}
while (db->ops->fgets (buf, buflen, db->fp) == buf) {
while ( ((cp = strrchr (buf, '\n')) == NULL)
while ( (strrchr (buf, '\n') == NULL)
&& (feof (db->fp) == 0)) {
size_t len;