Commit 0e7bf2f4 authored by Erik Arfvidson's avatar Erik Arfvidson Committed by Greg Kroah-Hartman

staging: unisys: fix spaces after cast visorchipset.c

This patch fixes checkpatch's no space is necessary after a cast
Signed-off-by: default avatarErik Arfvidson <erik.arfvidson@unisys.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d1e08637
...@@ -397,7 +397,7 @@ parser_init_byte_stream(u64 addr, u32 bytes, bool local, bool *retry) ...@@ -397,7 +397,7 @@ parser_init_byte_stream(u64 addr, u32 bytes, bool local, bool *retry)
rc = NULL; rc = NULL;
goto cleanup; goto cleanup;
} }
p = __va((unsigned long) (addr)); p = __va((unsigned long)(addr));
memcpy(ctx->data, p, bytes); memcpy(ctx->data, p, bytes);
} else { } else {
void *mapping; void *mapping;
...@@ -525,7 +525,7 @@ parser_string_get(struct parser_context *ctx) ...@@ -525,7 +525,7 @@ parser_string_get(struct parser_context *ctx)
return NULL; return NULL;
if (value_length > 0) if (value_length > 0)
memcpy(value, pscan, value_length); memcpy(value, pscan, value_length);
((u8 *) (value))[value_length] = '\0'; ((u8 *)(value))[value_length] = '\0';
return value; return value;
} }
...@@ -815,7 +815,7 @@ controlvm_init_response(struct controlvm_message *msg, ...@@ -815,7 +815,7 @@ controlvm_init_response(struct controlvm_message *msg,
msg->hdr.payload_max_bytes = 0; msg->hdr.payload_max_bytes = 0;
if (response < 0) { if (response < 0) {
msg->hdr.flags.failed = 1; msg->hdr.flags.failed = 1;
msg->hdr.completion_status = (u32) (-response); msg->hdr.completion_status = (u32)(-response);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment