Commit c06307c3 authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: svc: Use 'dev' instead '&op->connection->dev'

We already have a variable to access '&op->connection->dev' directly,
lets reuse it.
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarJean Pihet <jean.pihet@newoldbits.com>
Reviewed-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent c83d4abe
...@@ -469,8 +469,7 @@ static int gb_svc_intf_hot_unplug_recv(struct gb_operation *op) ...@@ -469,8 +469,7 @@ static int gb_svc_intf_hot_unplug_recv(struct gb_operation *op)
u8 intf_id; u8 intf_id;
if (request->payload_size < sizeof(*hot_unplug)) { if (request->payload_size < sizeof(*hot_unplug)) {
dev_err(&op->connection->dev, dev_err(dev, "short hot unplug request received (%zu < %zu)\n",
"short hot unplug request received (%zu < %zu)\n",
request->payload_size, sizeof(*hot_unplug)); request->payload_size, sizeof(*hot_unplug));
return -EINVAL; return -EINVAL;
} }
......
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