mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm: Don't initialize local ret variable when not needed
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
committed by
Dave Airlie
parent
7eb3b2c83d
commit
4a1b071427
@@ -220,18 +220,18 @@ int drm_load_edid_firmware(struct drm_connector *connector)
|
||||
{
|
||||
char *connector_name = drm_get_connector_name(connector);
|
||||
char *edidname = edid_firmware, *last, *colon;
|
||||
int ret = 0;
|
||||
int ret;
|
||||
|
||||
if (*edidname == '\0')
|
||||
return ret;
|
||||
return 0;
|
||||
|
||||
colon = strchr(edidname, ':');
|
||||
if (colon != NULL) {
|
||||
if (strncmp(connector_name, edidname, colon - edidname))
|
||||
return ret;
|
||||
return 0;
|
||||
edidname = colon + 1;
|
||||
if (*edidname == '\0')
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
last = edidname + strlen(edidname) - 1;
|
||||
|
||||
Reference in New Issue
Block a user