From: Benjamin Romer Date: Mon, 18 Aug 2014 13:34:52 +0000 (-0400) Subject: staging: unisys: fix spacing in parser.c X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9a8cca9f6c2558b7eb249fa86b7c42eb790a09df;p=openwrt%2Fstaging%2Fblogic.git staging: unisys: fix spacing in parser.c Fix the two spacing errors in parser.c. Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorchipset/parser.c b/drivers/staging/unisys/visorchipset/parser.c index 86fa2949dc4e..661aaae9b154 100644 --- a/drivers/staging/unisys/visorchipset/parser.c +++ b/drivers/staging/unisys/visorchipset/parser.c @@ -84,6 +84,7 @@ parser_init_guts(u64 addr, u32 bytes, BOOL isLocal, ctx->byte_stream = FALSE; if (isLocal) { void *p; + if (addr > virt_to_phys(high_memory - 1)) { ERRDRV("%s - bad local address (0x%-16.16Lx for %lu)", __func__, @@ -257,6 +258,7 @@ static int string_length_no_trail(char *s, int len) { int i = len - 1; + while (i >= 0) { if (!isspace(s[i])) return i + 1;