Message ID | 1449618477.16905.126.camel@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/block/badblocks.c b/block/badblocks.c index f0ac279..e5d2a91 100644 --- a/block/badblocks.c +++ b/block/badblocks.c @@ -503,16 +503,6 @@ ssize_t badblocks_store(struct badblocks *bb, const char *page, size_t len, int length; char newline; - /* Allow clearing via sysfs *only* for testing/debugging. - * Normally only a successful write may clear a badblock - */ - int clear = 0; - - if (page[0] == '-') { - clear = 1; - page++; - } - switch (sscanf(page, "%llu %d%c", §or, &length, &newline)) {