diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-27 11:20:22 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-31 13:57:12 +0200 |
commit | b204a1d8b6f3c91b11d4b5a85fc3877a69d52b9f (patch) | |
tree | eef2983c748fabb60934c018004c1d9162e3c6e0 /src/barebox-state.c | |
parent | c55e8e1a19fa37c1bc49a1a6ba666135bdc45d8a (diff) | |
download | dt-utils-b204a1d8b6f3c91b11d4b5a85fc3877a69d52b9f.tar.gz dt-utils-b204a1d8b6f3c91b11d4b5a85fc3877a69d52b9f.tar.xz |
Revert "barebox-state: Add force switch"
This reverts commit 89135e5522720bc75615a6ec22bb8bcb7b4994e2.
Diffstat (limited to 'src/barebox-state.c')
-rw-r--r-- | src/barebox-state.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/barebox-state.c b/src/barebox-state.c index c9b000c..25f3bc3 100644 --- a/src/barebox-state.c +++ b/src/barebox-state.c @@ -37,8 +37,6 @@ #include <dt/dt.h> #include <state.h> -static int force; - struct state_variable; static int __state_uint8_set(struct state_variable *var, const char *val); @@ -362,7 +360,7 @@ struct state *state_get(const char *name, bool readonly) return ERR_PTR(ret); } - state = state_new_from_node(node, devpath, offset, size, readonly, force); + state = state_new_from_node(node, devpath, offset, size, readonly); if (IS_ERR(state)) { pr_err("unable to initialize state: %s\n", strerror(PTR_ERR(state))); @@ -382,7 +380,6 @@ static struct option long_options[] = { {"name", required_argument, 0, 'n' }, {"dump", no_argument, 0, 'd' }, {"dump-shell", no_argument, 0, OPT_DUMP_SHELL }, - {"force", no_argument, 0, 'f' }, {"verbose", no_argument, 0, 'v' }, {"help", no_argument, 0, 'h' }, }; @@ -397,7 +394,6 @@ static void usage(char *name) "-n, --name <name> specify the state to use (default=\"state\"). Multiple states are allowed.\n" "-d, --dump dump the state\n" "--dump-shell dump the state suitable for shell sourcing\n" -"-f, --force ignore errors (like missing hmac algo)\n" "-v, --verbose increase verbosity\n" "-q, --quiet decrease verbosity\n" "--help this help\n", @@ -480,9 +476,6 @@ int main(int argc, char *argv[]) ++nr_states; break; } - case 'f': - force = 1; - break; case ':': case '?': default: |