diff options
Diffstat (limited to 'commands/state.c')
-rw-r--r-- | commands/state.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/commands/state.c b/commands/state.c index 0dbca9f3b7..56ef93b19f 100644 --- a/commands/state.c +++ b/commands/state.c @@ -1,16 +1,5 @@ -/* - * Copyright (C) 2012 Jan Luebbe <j.luebbe@pengutronix.de> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +// SPDX-License-Identifier: GPL-2.0-or-later +// SPDX-FileCopyrightText: © 2012 Jan Luebbe <j.luebbe@pengutronix.de> #include <common.h> #include <getopt.h> @@ -64,6 +53,9 @@ static int do_state(int argc, char *argv[]) ret = state_save(state); } + if (ret == -ENOMEDIUM) + ret = 0; + return ret; } |