It's not possible for endpoint to be zero so the test doesn't work.  If
we break on the first iteration through the loop then endpoint is 1 and
"ret" is uninitialized.
Fixes: ebc944613567 ("drm: convert drivers to use drm_of_find_panel_or_bridge")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170415192142.GA6416@mwanda
 int atmel_hlcdc_create_outputs(struct drm_device *dev)
 {
        struct device_node *remote;
-       int ret, endpoint = 0;
+       int ret = -ENODEV;
+       int endpoint = 0;
 
        while (true) {
                /* Loop thru possible multiple connections to the output */
                        return ret;
        }
 
-       if (!endpoint)
-               return -ENODEV;
        return ret;
 }