From: Viresh Kumar Date: Wed, 23 Sep 2015 23:48:07 +0000 (-0700) Subject: greybus: svc: Use 'dev' instead '&op->connection->dev' X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c06307c3b476a40dfc853af34af76b591115e42c;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: Jean Pihet Reviewed-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/svc.c b/drivers/staging/greybus/svc.c index 35e2fb525dfa..056351fe9449 100644 --- a/drivers/staging/greybus/svc.c +++ b/drivers/staging/greybus/svc.c @@ -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; }