Skip to content

Commit

Permalink
drm/bridge: sii902x: 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 d0ceb3e commit d341a64
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/gpu/drm/bridge/sii902x.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,7 @@ static int sii902x_probe(struct i2c_client *client,

sii902x->bridge.funcs = &sii902x_bridge_funcs;
sii902x->bridge.of_node = dev->of_node;
ret = drm_bridge_add(&sii902x->bridge);
if (ret) {
dev_err(dev, "Failed to add drm_bridge\n");
return ret;
}
drm_bridge_add(&sii902x->bridge);

i2c_set_clientdata(client, sii902x);

Expand Down

0 comments on commit d341a64

Please sign in to comment.