2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-20 03:04:01 +08:00

staging: unisys; visorbus: visorchipset.c: remove extraneous newline

Use all 80 characters when calling functions.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
David Kershner 2017-09-27 13:14:10 -04:00 committed by Greg Kroah-Hartman
parent cbe7e02f97
commit 040b78f7ad

View File

@ -392,8 +392,7 @@ out_respond:
} }
static int controlvm_respond(struct controlvm_message_header *msg_hdr, static int controlvm_respond(struct controlvm_message_header *msg_hdr,
int response, int response, struct visor_segment_state *state)
struct visor_segment_state *state)
{ {
struct controlvm_message outmsg; struct controlvm_message outmsg;
@ -452,8 +451,7 @@ static int save_crash_message(struct controlvm_message *msg,
case CRASH_DEV: case CRASH_DEV:
local_crash_msg_offset += sizeof(struct controlvm_message); local_crash_msg_offset += sizeof(struct controlvm_message);
err = visorchannel_write(chipset_dev->controlvm_channel, err = visorchannel_write(chipset_dev->controlvm_channel,
local_crash_msg_offset, local_crash_msg_offset, msg,
msg,
sizeof(struct controlvm_message)); sizeof(struct controlvm_message));
if (err) { if (err) {
dev_err(&chipset_dev->acpi_device->dev, dev_err(&chipset_dev->acpi_device->dev,
@ -463,8 +461,7 @@ static int save_crash_message(struct controlvm_message *msg,
break; break;
case CRASH_BUS: case CRASH_BUS:
err = visorchannel_write(chipset_dev->controlvm_channel, err = visorchannel_write(chipset_dev->controlvm_channel,
local_crash_msg_offset, local_crash_msg_offset, msg,
msg,
sizeof(struct controlvm_message)); sizeof(struct controlvm_message));
if (err) { if (err) {
dev_err(&chipset_dev->acpi_device->dev, dev_err(&chipset_dev->acpi_device->dev,
@ -549,8 +546,7 @@ static int visorbus_create(struct controlvm_message *inmsg)
} }
if (inmsg->hdr.flags.response_expected == 1) { if (inmsg->hdr.flags.response_expected == 1) {
pmsg_hdr = kzalloc(sizeof(*pmsg_hdr), pmsg_hdr = kzalloc(sizeof(*pmsg_hdr), GFP_KERNEL);
GFP_KERNEL);
if (!pmsg_hdr) { if (!pmsg_hdr) {
err = -ENOMEM; err = -ENOMEM;
goto err_free_bus_info; goto err_free_bus_info;
@ -1010,13 +1006,13 @@ static int parahotplug_request_complete(int id, u16 active)
{ {
struct list_head *pos; struct list_head *pos;
struct list_head *tmp; struct list_head *tmp;
struct parahotplug_request *req;
spin_lock(&parahotplug_request_list_lock); spin_lock(&parahotplug_request_list_lock);
/* Look for a request matching "id". */ /* Look for a request matching "id". */
list_for_each_safe(pos, tmp, &parahotplug_request_list) { list_for_each_safe(pos, tmp, &parahotplug_request_list) {
struct parahotplug_request *req = req = list_entry(pos, struct parahotplug_request, list);
list_entry(pos, struct parahotplug_request, list);
if (req->id == id) { if (req->id == id) {
/* /*
* Found a match. Remove it from the list and * Found a match. Remove it from the list and
@ -1216,9 +1212,7 @@ static int chipset_ready_uevent(struct controlvm_message_header *msg_hdr)
{ {
int res; int res;
res = kobject_uevent(&chipset_dev->acpi_device->dev.kobj, res = kobject_uevent(&chipset_dev->acpi_device->dev.kobj, KOBJ_ONLINE);
KOBJ_ONLINE);
if (msg_hdr->flags.response_expected) if (msg_hdr->flags.response_expected)
controlvm_respond(msg_hdr, res, NULL); controlvm_respond(msg_hdr, res, NULL);
@ -1343,8 +1337,7 @@ static void setup_crash_devices_work_queue(struct work_struct *work)
} }
if (local_crash_msg_count != CONTROLVM_CRASHMSG_MAX) { if (local_crash_msg_count != CONTROLVM_CRASHMSG_MAX) {
dev_err(&chipset_dev->acpi_device->dev, dev_err(&chipset_dev->acpi_device->dev, "invalid count\n");
"invalid count\n");
return; return;
} }
@ -1409,8 +1402,8 @@ void visorbus_device_changestate_response(struct visor_device *dev_info,
int response, int response,
struct visor_segment_state state) struct visor_segment_state state)
{ {
device_changestate_responder(CONTROLVM_DEVICE_CHANGESTATE, device_changestate_responder(CONTROLVM_DEVICE_CHANGESTATE, dev_info,
dev_info, response, state); response, state);
kfree(dev_info->pending_msg_hdr); kfree(dev_info->pending_msg_hdr);
dev_info->pending_msg_hdr = NULL; dev_info->pending_msg_hdr = NULL;
@ -1434,8 +1427,8 @@ static struct parser_context *parser_init_stream(u64 addr, u32 bytes,
/* alloc an extra byte to ensure payload is \0 terminated */ /* alloc an extra byte to ensure payload is \0 terminated */
allocbytes = bytes + 1 + (sizeof(struct parser_context) - allocbytes = bytes + 1 + (sizeof(struct parser_context) -
sizeof(struct visor_controlvm_parameters_header)); sizeof(struct visor_controlvm_parameters_header));
if ((chipset_dev->controlvm_payload_bytes_buffered + bytes) if ((chipset_dev->controlvm_payload_bytes_buffered + bytes) >
> MAX_CONTROLVM_PAYLOAD_BYTES) { MAX_CONTROLVM_PAYLOAD_BYTES) {
*retry = true; *retry = true;
return NULL; return NULL;
} }