]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
xgate: use is_whitespace()
authorJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 11:28:58 +0000 (12:28 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 11:28:58 +0000 (12:28 +0100)
Convert an open-coded check.

gas/config/tc-xgate.c

index 1c98f2dffb6f659513206963fff9e39294945a06..5e09ee5f27e22e9b7ece15df09ca1cc70ec9a406 100644 (file)
@@ -812,7 +812,7 @@ xgate_elf_final_processing (void)
 static inline char *
 skip_whitespace (char *s)
 {
-  while (*s == ' ' || *s == '\t' || *s == '(' || *s == ')')
+  while (is_whitespace (*s) || *s == '(' || *s == ')')
     s++;
 
   return s;