diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 1107bc1edd92..a05dc23d954c 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -441,14 +441,6 @@ static int ramoops_probe(struct platform_device *pdev) if (err) goto fail_init_fprz; - if (!cxt->przs && !cxt->cprz && !cxt->fprz) { - pr_err("memory size too small, minimum is %zu\n", - cxt->console_size + cxt->record_size + - cxt->ftrace_size); - err = -EINVAL; - goto fail_cnt; - } - cxt->pstore.data = cxt; /* * Console can handle any buffer size, so prefer LOG_LINE_MAX. If we @@ -493,7 +485,6 @@ fail_buf: fail_clear: cxt->pstore.bufsize = 0; cxt->max_dump_cnt = 0; -fail_cnt: kfree(cxt->fprz); fail_init_fprz: kfree(cxt->cprz);