[SPARC64]: constify of_get_property return: arch/sparc64
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
8271f04242
commit
6a23acf390
@ -224,7 +224,8 @@ static char *serial(char *buffer, int sz)
|
||||
|
||||
*buffer = 0;
|
||||
if (dp) {
|
||||
char *val = of_get_property(dp, "system-board-serial#", &len);
|
||||
const char *val =
|
||||
of_get_property(dp, "system-board-serial#", &len);
|
||||
|
||||
if (val && len > 0) {
|
||||
if (len > sz)
|
||||
|
Reference in New Issue
Block a user