greybus: svc: Use 'dev' instead '&op->connection->dev'
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 23 Sep 2015 23:48:07 +0000 (16:48 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 24 Sep 2015 22:16:54 +0000 (15:16 -0700)
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>
drivers/staging/greybus/svc.c

index 35e2fb525dfae211c9ef9e50c6afe2107dd4c76a..056351fe9449da1f442abc1e18f4cbafa217301f 100644 (file)
@@ -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;
        }