Re: [PATCH 1/1] btrfs: tests: remove unnecessary oom message
From: David Sterba <hidden>
Date: 2021-06-17 20:38:10
From: David Sterba <hidden>
Date: 2021-06-17 20:38:10
On Thu, Jun 17, 2021 at 04:30:53PM +0800, Zhen Lei wrote:
Fixes scripts/checkpatch.pl warning: WARNING: Possible unnecessary 'out of memory' message Remove it can help us save a bit of memory.
Well, we have a few more messages in tests regarding failed memory allocations. Though I've never seen one in practice, I think it's not a big deal to have that one here as well. The failures in the testsuite are intentionally verbose and saving a few bytes in optional development feature hardly bothers anyone. Where bytes can be saved are error messages for the same type of error, that I've implemented in the past, see file fs/btrfs/tests/btrfs-tests.c array test_error that maps enums to strings.