[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] acpi: Fix brokenness
From: |
Samuel Thibault |
Subject: |
Re: [PATCH] acpi: Fix brokenness |
Date: |
Mon, 8 Mar 2021 12:04:19 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Damien Zammit, le lun. 08 mars 2021 16:05:48 +1100, a ecrit:
> + if (max_data_len)
> {
> + size =
> + ((count * DIRENTS_CHUNK_SIZE) > max_data_len) ?
> + max_data_len : count * DIRENTS_CHUNK_SIZE;
> }
> -
> - size =
> - (count * DIRENTS_CHUNK_SIZE) >
> - max_data_len ? max_data_len : count * DIRENTS_CHUNK_SIZE;
> + else
> + size = count * DIRENTS_CHUNK_SIZE;
Rather something like
size = count * DIRENTS_CHUNK_SIZE;
if (max_data_len && size > max_data_len)
size = max_data_len;
which is way easier to read?
Samuel