From bf6f87e726c7e585402575a0976c717c6edd9817 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 14 May 2016 05:51:28 -0700 Subject: Remove redundant sizeof on EXPECTED_VIEW_LENGTH PR ld/20097 * testplug2.c (onall_symbols_read): Remove redundant sizeof on EXPECTED_VIEW_LENGTH. * testplug4.c (onall_symbols_read): Likewise. --- ld/testplug4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/testplug4.c') diff --git a/ld/testplug4.c b/ld/testplug4.c index fe7665a..86bad65 100644 --- a/ld/testplug4.c +++ b/ld/testplug4.c @@ -608,7 +608,7 @@ onall_symbols_read (void) #define EXPECTED_VIEW "/* The first line of this file must match the expectation of" #define EXPECTED_VIEW_LENGTH (sizeof (EXPECTED_VIEW) - 1) if (file.filesize != SIZE_OF_PR20070B_C - || SIZE_OF_PR20070B_C < sizeof EXPECTED_VIEW_LENGTH + || SIZE_OF_PR20070B_C < EXPECTED_VIEW_LENGTH || memcmp (view, EXPECTED_VIEW, EXPECTED_VIEW_LENGTH) != 0) { char result[EXPECTED_VIEW_LENGTH + 1]; -- cgit v1.1