Commit de6d6818 authored by Lyude Paul's avatar Lyude Paul

drm/dp_mst: Fix some formatting in drm_dp_payload_send_msg()

Split some stuff across multiple lines, remove some unnecessary braces
Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Reviewed-by: default avatarDaniel Vetter <daniel@ffwll.ch>
Cc: David Airlie <airlied@redhat.com>
Cc: Jerry Zuo <Jerry.Zuo@amd.com>
Cc: Juston Li <juston.li@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190111005343.17443-3-lyude@redhat.com
parent 3d76df63
...@@ -1331,8 +1331,8 @@ static struct drm_dp_mst_branch *get_mst_branch_device_by_guid_helper( ...@@ -1331,8 +1331,8 @@ static struct drm_dp_mst_branch *get_mst_branch_device_by_guid_helper(
return NULL; return NULL;
} }
static struct drm_dp_mst_branch *drm_dp_get_mst_branch_device_by_guid( static struct drm_dp_mst_branch *
struct drm_dp_mst_topology_mgr *mgr, drm_dp_get_mst_branch_device_by_guid(struct drm_dp_mst_topology_mgr *mgr,
uint8_t *guid) uint8_t *guid)
{ {
struct drm_dp_mst_branch *mstb; struct drm_dp_mst_branch *mstb;
...@@ -1739,7 +1739,9 @@ static int drm_dp_payload_send_msg(struct drm_dp_mst_topology_mgr *mgr, ...@@ -1739,7 +1739,9 @@ static int drm_dp_payload_send_msg(struct drm_dp_mst_topology_mgr *mgr,
port_num = port->port_num; port_num = port->port_num;
mstb = drm_dp_get_validated_mstb_ref(mgr, port->parent); mstb = drm_dp_get_validated_mstb_ref(mgr, port->parent);
if (!mstb) { if (!mstb) {
mstb = drm_dp_get_last_connected_port_and_mstb(mgr, port->parent, &port_num); mstb = drm_dp_get_last_connected_port_and_mstb(mgr,
port->parent,
&port_num);
if (!mstb) { if (!mstb) {
drm_dp_put_port(port); drm_dp_put_port(port);
...@@ -1765,9 +1767,9 @@ static int drm_dp_payload_send_msg(struct drm_dp_mst_topology_mgr *mgr, ...@@ -1765,9 +1767,9 @@ static int drm_dp_payload_send_msg(struct drm_dp_mst_topology_mgr *mgr,
ret = drm_dp_mst_wait_tx_reply(mstb, txmsg); ret = drm_dp_mst_wait_tx_reply(mstb, txmsg);
if (ret > 0) { if (ret > 0) {
if (txmsg->reply.reply_type == 1) { if (txmsg->reply.reply_type == 1)
ret = -EINVAL; ret = -EINVAL;
} else else
ret = 0; ret = 0;
} }
kfree(txmsg); kfree(txmsg);
......
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