From bce4fb43aa1a800dd7e683b975dde326350945bb Mon Sep 17 00:00:00 2001 From: Ariel Otilibili Date: Fri, 27 Dec 2024 00:15:18 +0100 Subject: [PATCH] tests: Replace 'unsigned long int' by 'unsigned long' As suggested by the linter: Prefer 'unsigned long' over 'unsigned long int' as the int is unnecessary Link: https://qa.coreboot.org/job/coreboot-untested-files/lastSuccessfulBuild/artifact/lint.txt Cc: Jakub Czapiga Change-Id: Ia41f0674f4abab285d89ed5101b3805975f3f381 Signed-off-by: Ariel Otilibili Reviewed-on: https://review.coreboot.org/c/coreboot/+/85788 Reviewed-by: Maximilian Brune Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) --- tests/device/i2c-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/device/i2c-test.c b/tests/device/i2c-test.c index 4b96d940f9..36b9e4a1f0 100644 --- a/tests/device/i2c-test.c +++ b/tests/device/i2c-test.c @@ -80,7 +80,7 @@ int platform_i2c_transfer(unsigned int bus, struct i2c_msg *segments, int count) static void mock_expect_params_platform_i2c_transfer(void) { - unsigned long int expected_flags[] = {0, I2C_M_RD, I2C_M_TEN, I2C_M_RECV_LEN, + unsigned long expected_flags[] = {0, I2C_M_RD, I2C_M_TEN, I2C_M_RECV_LEN, I2C_M_NOSTART}; /* Flags should always be only within supported range */