diff options
author | Mark Brown <broonie@kernel.org> | 2024-09-12 12:38:44 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-09-12 12:38:44 +0100 |
commit | f10d52087cbe85dcff2af3dc94c5b9d06e6d4b9a (patch) | |
tree | d07ff0a3767fbb6118505de85ad657f78f512c06 /lib/overflow_kunit.c | |
parent | 740c1c84bfa3d8c63bd3b01fb570e7452f51fbd8 (diff) | |
parent | b787a33864121a565aeb0e88561bf6062a19f99c (diff) |
spi: Merge up fixes
A patch for Qualcomm depends on some fixes.
Diffstat (limited to 'lib/overflow_kunit.c')
-rw-r--r-- | lib/overflow_kunit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/overflow_kunit.c b/lib/overflow_kunit.c index f314a0c15a6d..2abc78367dd1 100644 --- a/lib/overflow_kunit.c +++ b/lib/overflow_kunit.c @@ -668,7 +668,6 @@ DEFINE_TEST_ALLOC(devm_kzalloc, devm_kfree, 1, 1, 0); static void overflow_allocation_test(struct kunit *test) { - const char device_name[] = "overflow-test"; struct device *dev; int count = 0; @@ -678,7 +677,7 @@ static void overflow_allocation_test(struct kunit *test) } while (0) /* Create dummy device for devm_kmalloc()-family tests. */ - dev = kunit_device_register(test, device_name); + dev = kunit_device_register(test, "overflow-test"); KUNIT_ASSERT_FALSE_MSG(test, IS_ERR(dev), "Cannot register test device\n"); |