main: fix hang at rmmod

This commit is contained in:
Thomas Schoebel-Theuer 2017-01-06 20:13:08 +01:00 committed by Thomas Schoebel-Theuer
parent d552ac8b37
commit 4e80236400
1 changed files with 1 additions and 1 deletions

View File

@ -4011,7 +4011,7 @@ static int make_replay(void *buf, struct mars_dent *dent)
struct mars_dent *parent = dent->d_parent;
int status = 0;
if (!global->global_power.button || !parent || !dent->new_link) {
if (!parent || !dent->new_link) {
MARS_DBG("nothing to do\n");
goto done;
}