terminal_log: remove session size check

The amount of RAM required by the session object is already accounted
for by the Root_component.

Fixes #3776.
This commit is contained in:
Josef Söntgen 2020-06-05 15:45:54 +02:00 committed by Norman Feske
parent dc8b4eeb40
commit e8fec3eed6

View File

@ -102,14 +102,6 @@ namespace Genode {
*/
Termlog_component *_create_session(const char *args) override
{
size_t ram_quota =
Arg_string::find_arg(args, "ram_quota" ).ulong_value(0);
/* delete ram quota by the memory needed for the session */
size_t session_size = max((size_t)4096, sizeof(Termlog_component));
if (ram_quota < session_size)
throw Insufficient_ram_quota();
char label_buf[Termlog_component::LABEL_LEN];
Arg label_arg = Arg_string::find_arg(args, "label");