mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
iio: Remove a cast in iio-test-format which is no longer required
KUnit's EXPECT macros no longer typecheck as stringently, so casting the result of strcmp() is now unnecessary. Signed-off-by: David Gow <davidgow@google.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
parent
6d2e97894b
commit
28dce2c4a8
@ -8,7 +8,7 @@
|
||||
#include <linux/iio/iio.h>
|
||||
|
||||
#define IIO_TEST_FORMAT_EXPECT_EQ(_test, _buf, _ret, _val) do { \
|
||||
KUNIT_EXPECT_EQ(_test, (int)strlen(_buf), _ret); \
|
||||
KUNIT_EXPECT_EQ(_test, strlen(_buf), _ret); \
|
||||
KUNIT_EXPECT_STREQ(_test, (_buf), (_val)); \
|
||||
} while (0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user