]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
resource: introduce is_type_match() helper and use it
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 25 Sep 2024 15:43:35 +0000 (18:43 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 6 Nov 2024 01:12:28 +0000 (17:12 -0800)
commitba1eccc114ffc62c4495a5e15659190fa2c42308
tree44dfcad68efd0177307c90e2474e30d76ce00828
parent5c1edea773c98707fbb23d1df168bcff52f61e4b
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>
kernel/resource.c