{
switch (*arch)
{
- case 's':
- return RV_ISA_CLASS_S;
-
+ case 's': return RV_ISA_CLASS_S;
case 'x': return RV_ISA_CLASS_X;
case 'z': return RV_ISA_CLASS_Z;
default: return RV_ISA_CLASS_UNKNOWN;
/* Check that the name is valid.
For 'x', anything goes but it cannot simply be 'x'.
- For 'z', it must be known from a list and also cannot simply be 'z'.
- For 's', it must be known from a list and also *can* simply be 's'. */
+ For 's', it must be known from a list and cannot simply be 's'.
+ For 'z', it must be known from a list and cannot simply be 'z'. */
/* Check that the extension name is well-formed. */
if (!config->ext_valid_p (subset))
riscv_multi_letter_ext_valid_p (const char *ext,
const char *const *known_exts)
{
- for (size_t i = 0; known_exts[i]; ++i)
- {
- if (!strcmp (ext, known_exts[i]))
- return TRUE;
- }
+ size_t i;
+
+ for (i = 0; known_exts[i]; ++i)
+ if (!strcmp (ext, known_exts[i]))
+ return TRUE;
return FALSE;
}