diff options
author | David Gow <davidgow@google.com> | 2021-05-13 12:31:59 -0700 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2021-06-23 16:38:24 -0600 |
commit | 28dce2c4a83d6e34936ba8d5c3ee780861460100 (patch) | |
tree | df10289e65141fea7f8d759e4ea1aa1ee77f0ffd /drivers/iio/test | |
parent | 6d2e97894b67778109679443008c2d063787540e (diff) | |
download | linux-28dce2c4a83d6e34936ba8d5c3ee780861460100.tar.bz2 |
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>
Diffstat (limited to 'drivers/iio/test')
-rw-r--r-- | drivers/iio/test/iio-test-format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/test/iio-test-format.c b/drivers/iio/test/iio-test-format.c index 55a0cfe9181d..f1e951eddb43 100644 --- a/drivers/iio/test/iio-test-format.c +++ b/drivers/iio/test/iio-test-format.c @@ -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) |