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: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Jean Pihet <jean.pihet@newoldbits.com> Reviewed-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
c83d4abe1d
commit
c06307c3b4
@ -469,8 +469,7 @@ static int gb_svc_intf_hot_unplug_recv(struct gb_operation *op)
|
||||
u8 intf_id;
|
||||
|
||||
if (request->payload_size < sizeof(*hot_unplug)) {
|
||||
dev_err(&op->connection->dev,
|
||||
"short hot unplug request received (%zu < %zu)\n",
|
||||
dev_err(dev, "short hot unplug request received (%zu < %zu)\n",
|
||||
request->payload_size, sizeof(*hot_unplug));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user