Remove dead assignments spotted by clang-analyzer.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2011-04-03 21:54:58 +02:00
parent 1473145d10
commit 5b12c236cf
8 changed files with 17 additions and 40 deletions

View File

@@ -198,10 +198,9 @@ static void
todo_delete_note_bynum (unsigned num)
{
unsigned n;
struct todo *i, **iptr;
struct todo *i;
n = 0;
iptr = &todolist;
for (i = todolist; i != 0; i = i->next)
{
if (n == num)
@@ -211,7 +210,6 @@ todo_delete_note_bynum (unsigned num)
erase_note (&i->note, ERASE_FORCE_ONLY_NOTE);
return;
}
iptr = &i->next;
n++;
}
/* NOTREACHED */