drm/bridge: sii902x: clean up drm_bridge_add call
authorInki Dae <inki.dae@samsung.com>
Mon, 3 Jul 2017 08:42:24 +0000 (17:42 +0900)
committerArchit Taneja <architt@codeaurora.org>
Thu, 6 Jul 2017 08:46:29 +0000 (14:16 +0530)
This patch removes unnecessary checking of return value.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1499071350-25168-9-git-send-email-inki.dae@samsung.com
drivers/gpu/drm/bridge/sii902x.c

index 9b87067c022cd8f541d94310dd5266ab84cf7c9d..b8d10e599df08d243eb9da658f5423210fcefb85 100644 (file)
@@ -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);