Re: [PATCH] MIPS: Rewrite cpu_to_name so it has one statement per line (version 2).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 14 Oct 2008, David Daney wrote:
> +static const char *mips_cpu_names[] = {

    [...]

> +	[CPU_LAST]		= NULL
> +};

> +	if (c->cputype >= CPU_LAST)
                       ^^
Either you can use `>' here, or remove the [CPU_LAST] entry in
mips_cpu_names[].

> +		BUG();
> +	name = mips_cpu_names[c->cputype];
> +	if (!name)
> 		BUG();
> -	}
> -
> 	return name;
> }

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux