[CRIU] [PATCH] handle-elf.c: whitespace cleanup
Kir Kolyshkin
kir at openvz.org
Thu Oct 6 13:19:56 PDT 2016
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
compel/src/lib/handle-elf.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/compel/src/lib/handle-elf.c b/compel/src/lib/handle-elf.c
index b7e540e..32759fe 100644
--- a/compel/src/lib/handle-elf.c
+++ b/compel/src/lib/handle-elf.c
@@ -66,10 +66,10 @@ static bool test_pointer(const void *ptr, const void *start, const size_t size,
static int do_relative_toc(long value, uint16_t *location,
unsigned long mask, int complain_signed)
{
- if (complain_signed && (value + 0x8000 > 0xffff)) {
+ if (complain_signed && (value + 0x8000 > 0xffff)) {
pr_err("TOC16 relocation overflows (%ld)\n", value);
return -1;
- }
+ }
if ((~mask & 0xffff) & value) {
pr_err("bad TOC16 relocation (%ld) (0x%lx)\n",
@@ -411,7 +411,7 @@ int __handle_elf(void *mem, size_t size)
}
/* Only replace bits 2 through 26 */
*(uint32_t *)where = (*(uint32_t *)where & ~0x03fffffc) |
- (value64 & 0x03fffffc);
+ (value64 & 0x03fffffc);
break;
case R_PPC64_ADDR32:
--
2.7.4
More information about the CRIU
mailing list