]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
MIPS: Alchemy: Change strict_strtol to strict_strtoul
authorJulia Lawall <julia@diku.dk>
Tue, 25 Nov 2008 13:12:32 +0000 (14:12 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 11 Jan 2009 09:57:19 +0000 (09:57 +0000)
commit2bd2dd059ca7406a030bace8dccdb25f635578c1
tree505426d1faa78e128eb4aedd2cc7c4b384979d4c
parent797c3f322454f5994e88b0e0bfc34cd4ad521d38
MIPS: Alchemy: Change strict_strtol to strict_strtoul

Since memsize is unsigned, it would seem better to use strict_strtoul that
strict_strtol.

A simplified version of the semantic patch that makes this change is as
follows: (http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@s2@
long e;
position p;
@@

strict_strtol@p(...,&e)

@@
position p != s2.p;
type T;
T e;
@@

- strict_strtol@p
+ strict_strtoul
  (...,&e)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/alchemy/db1x00/init.c
arch/mips/alchemy/mtx-1/init.c
arch/mips/alchemy/pb1000/init.c
arch/mips/alchemy/pb1100/init.c
arch/mips/alchemy/pb1200/init.c
arch/mips/alchemy/pb1500/init.c
arch/mips/alchemy/pb1550/init.c
arch/mips/alchemy/xxs1500/init.c