aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-05-14 05:51:28 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-05-14 05:51:28 -0700
commitbf6f87e726c7e585402575a0976c717c6edd9817 (patch)
tree71fefe015b45e79560b9e5404699a6035d694e30 /ld/testplug2.c
parentAutomatic date update in version.in (diff)
downloadbinutils-gdb-bf6f87e726c7e585402575a0976c717c6edd9817.tar.gz
binutils-gdb-bf6f87e726c7e585402575a0976c717c6edd9817.tar.bz2
binutils-gdb-bf6f87e726c7e585402575a0976c717c6edd9817.zip
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.
Diffstat (limited to 'ld/testplug2.c')
-rw-r--r--ld/testplug2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testplug2.c b/ld/testplug2.c
index 5e346436833..5dc4e78b8fa 100644
--- a/ld/testplug2.c
+++ b/ld/testplug2.c
@@ -602,7 +602,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_FUNC_C
- || SIZE_OF_FUNC_C < sizeof EXPECTED_VIEW_LENGTH
+ || SIZE_OF_FUNC_C < EXPECTED_VIEW_LENGTH
|| memcmp (view, EXPECTED_VIEW, EXPECTED_VIEW_LENGTH) != 0)
{
char result[EXPECTED_VIEW_LENGTH + 1];