diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/pstore/ram.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 8613e5b35c22..34ed8f860e23 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c | |||
@@ -474,14 +474,6 @@ static int ramoops_probe(struct platform_device *pdev) | |||
474 | if (err) | 474 | if (err) |
475 | goto fail_init_fprz; | 475 | goto fail_init_fprz; |
476 | 476 | ||
477 | if (!cxt->przs && !cxt->cprz && !cxt->fprz) { | ||
478 | pr_err("memory size too small, minimum is %zu\n", | ||
479 | cxt->console_size + cxt->record_size + | ||
480 | cxt->ftrace_size); | ||
481 | err = -EINVAL; | ||
482 | goto fail_cnt; | ||
483 | } | ||
484 | |||
485 | cxt->pstore.data = cxt; | 477 | cxt->pstore.data = cxt; |
486 | /* | 478 | /* |
487 | * Console can handle any buffer size, so prefer LOG_LINE_MAX. If we | 479 | * Console can handle any buffer size, so prefer LOG_LINE_MAX. If we |
@@ -525,7 +517,6 @@ fail_buf: | |||
525 | kfree(cxt->pstore.buf); | 517 | kfree(cxt->pstore.buf); |
526 | fail_clear: | 518 | fail_clear: |
527 | cxt->pstore.bufsize = 0; | 519 | cxt->pstore.bufsize = 0; |
528 | fail_cnt: | ||
529 | kfree(cxt->fprz); | 520 | kfree(cxt->fprz); |
530 | fail_init_fprz: | 521 | fail_init_fprz: |
531 | kfree(cxt->cprz); | 522 | kfree(cxt->cprz); |