Skip to content

Commit

Permalink
drm/bridge: tc358767: clean up drm_bridge_add call
Browse files Browse the repository at this point in the history
This patch removes unnecessary checking of return value.

Signed-off-by: Inki Dae <[email protected]>
Signed-off-by: Archit Taneja <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
daeinki authored and boddob committed Jul 6, 2017
1 parent b678682 commit dc01732
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/gpu/drm/bridge/tc358767.c
Original file line number Diff line number Diff line change
Expand Up @@ -1325,11 +1325,7 @@ static int tc_probe(struct i2c_client *client, const struct i2c_device_id *id)

tc->bridge.funcs = &tc_bridge_funcs;
tc->bridge.of_node = dev->of_node;
ret = drm_bridge_add(&tc->bridge);
if (ret) {
dev_err(dev, "Failed to add drm_bridge: %d\n", ret);
goto err_unregister_aux;
}
drm_bridge_add(&tc->bridge);

i2c_set_clientdata(client, tc);

Expand Down

0 comments on commit dc01732

Please sign in to comment.