Skip to content

Commit

Permalink
drm/bridge: simplify the return expression of ps8640_bridge_host_attach
Browse files Browse the repository at this point in the history
Simplify the return expression.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220429055145.3852271-1-chi.minghao@zte.com.cn
  • Loading branch information
Minghao Chi authored and Douglas Anderson committed May 10, 2022
1 parent 6c01aa1 commit e090532
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/gpu/drm/bridge/parade-ps8640.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,6 @@ static int ps8640_bridge_host_attach(struct device *dev, struct ps8640 *ps_bridg
struct device_node *in_ep, *dsi_node;
struct mipi_dsi_device *dsi;
struct mipi_dsi_host *host;
int ret;
const struct mipi_dsi_device_info info = { .type = "ps8640",
.channel = 0,
.node = NULL,
Expand Down Expand Up @@ -577,11 +576,7 @@ static int ps8640_bridge_host_attach(struct device *dev, struct ps8640 *ps_bridg
dsi->format = MIPI_DSI_FMT_RGB888;
dsi->lanes = NUM_MIPI_LANES;

ret = devm_mipi_dsi_attach(dev, dsi);
if (ret)
return ret;

return 0;
return devm_mipi_dsi_attach(dev, dsi);
}

static int ps8640_probe(struct i2c_client *client)
Expand Down

0 comments on commit e090532

Please sign in to comment.