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

gas/config/tc-xtensa.c

index 25599f8eb3c31cebcd68cb1fc8cd3119219cec59..ed53b6d7c310cd5ec3f59abf8014ded8ed616d06 100644 (file)
@@ -1857,11 +1857,12 @@ expression_end (const char *name)
        case ',':
        case ':':
          return name;
-       case ' ':
-       case '\t':
-         ++name;
-         continue;
        default:
+         if (is_whitespace (*name))
+           {
+             ++name;
+             continue;
+           }
          return 0;
        }
     }