diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-09-25 18:43:35 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-11-05 17:12:28 -0800 |
commit | ba1eccc114ffc62c4495a5e15659190fa2c42308 (patch) | |
tree | 44dfcad68efd0177307c90e2474e30d76ce00828 /fs/proc/array.c | |
parent | 5c1edea773c98707fbb23d1df168bcff52f61e4b (diff) |
resource: introduce is_type_match() helper and use it
There are already a couple of places where we may replace a few lines of
code by calling a helper, which increases readability while deduplicating
the code.
Introduce is_type_match() helper and use it.
Link: https://lkml.kernel.org/r/20240925154355.1170859-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions