iio: Remove a cast in iio-test-format which is no longer required
authorDavid Gow <davidgow@google.com>
Thu, 13 May 2021 19:31:59 +0000 (12:31 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 23 Jun 2021 22:38:24 +0000 (16:38 -0600)
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>
drivers/iio/test/iio-test-format.c

index 55a0cfe..f1e951e 100644 (file)
@@ -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)