summaryrefslogtreecommitdiff
path: root/lib/is_signed_type_kunit.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-11-03 01:50:05 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2022-11-19 00:56:15 +0100
commit0445d1bae1cce00ae4e99c8cde33784a8199bad6 (patch)
tree6170247bbe5e117550440b6d508a520606cbc245 /lib/is_signed_type_kunit.c
parent3bc753c06dd02a3517c9b498e3846ebfc94ac3ee (diff)
lib: assume char is unsigned
Now that we use -funsigned-char, there's no need for this kind of ifdef. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'lib/is_signed_type_kunit.c')
-rw-r--r--lib/is_signed_type_kunit.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/is_signed_type_kunit.c b/lib/is_signed_type_kunit.c
index 207207522925..0a7f6ae62839 100644
--- a/lib/is_signed_type_kunit.c
+++ b/lib/is_signed_type_kunit.c
@@ -21,11 +21,7 @@ static void is_signed_type_test(struct kunit *test)
KUNIT_EXPECT_EQ(test, is_signed_type(bool), false);
KUNIT_EXPECT_EQ(test, is_signed_type(signed char), true);
KUNIT_EXPECT_EQ(test, is_signed_type(unsigned char), false);
-#ifdef __CHAR_UNSIGNED__
KUNIT_EXPECT_EQ(test, is_signed_type(char), false);
-#else
- KUNIT_EXPECT_EQ(test, is_signed_type(char), true);
-#endif
KUNIT_EXPECT_EQ(test, is_signed_type(int), true);
KUNIT_EXPECT_EQ(test, is_signed_type(unsigned int), false);
KUNIT_EXPECT_EQ(test, is_signed_type(long), true);