Commit 92382385 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

staging: greybus: log: Fix up some alignment checkpatch issues

Some function prototypes do not match the expected alignment formatting
so fix that up so that checkpatch is happy.

Cc: David Lin <dtwlin@gmail.com>
Cc: Johan Hovold <johan@kernel.org>
Cc: greybus-dev@lists.linaro.org
Cc: devel@driverdev.osuosl.org
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Acked-by: default avatarAlex Elder <elder@kernel.org>
Link: https://lore.kernel.org/r/20190825055429.18547-6-gregkh@linuxfoundation.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ee989b02
...@@ -31,14 +31,14 @@ static int gb_log_request_handler(struct gb_operation *op) ...@@ -31,14 +31,14 @@ static int gb_log_request_handler(struct gb_operation *op)
/* Verify size of payload */ /* Verify size of payload */
if (op->request->payload_size < sizeof(*receive)) { if (op->request->payload_size < sizeof(*receive)) {
dev_err(dev, "log request too small (%zu < %zu)\n", dev_err(dev, "log request too small (%zu < %zu)\n",
op->request->payload_size, sizeof(*receive)); op->request->payload_size, sizeof(*receive));
return -EINVAL; return -EINVAL;
} }
receive = op->request->payload; receive = op->request->payload;
len = le16_to_cpu(receive->len); len = le16_to_cpu(receive->len);
if (len != (op->request->payload_size - sizeof(*receive))) { if (len != (op->request->payload_size - sizeof(*receive))) {
dev_err(dev, "log request wrong size %d vs %zu\n", len, dev_err(dev, "log request wrong size %d vs %zu\n", len,
(op->request->payload_size - sizeof(*receive))); (op->request->payload_size - sizeof(*receive)));
return -EINVAL; return -EINVAL;
} }
if (len == 0) { if (len == 0) {
...@@ -83,7 +83,7 @@ static int gb_log_probe(struct gb_bundle *bundle, ...@@ -83,7 +83,7 @@ static int gb_log_probe(struct gb_bundle *bundle,
return -ENOMEM; return -ENOMEM;
connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id),
gb_log_request_handler); gb_log_request_handler);
if (IS_ERR(connection)) { if (IS_ERR(connection)) {
retval = PTR_ERR(connection); retval = PTR_ERR(connection);
goto error_free; goto error_free;
......
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