tweaks: remove an unneeded check for NULL [coverity]

master
Benno Schulenberg 2019-04-04 12:47:20 +02:00
parent cd0917fe10
commit 2281ec9a31
1 changed files with 2 additions and 2 deletions

View File

@ -703,8 +703,8 @@ void do_redo(void)
return;
}
/* Get the previous undo item. */
while (u != NULL && u->next != openfile->current_undo)
/* Find the item before the current one in the undo stack. */
while (u->next != openfile->current_undo)
u = u->next;
if (u->type <= REPLACE) {