From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4FCA9EB64DC for ; Fri, 16 Jun 2023 10:34:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345286AbjFPKeV (ORCPT ); Fri, 16 Jun 2023 06:34:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345208AbjFPKdZ (ORCPT ); Fri, 16 Jun 2023 06:33:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69DAD59D5; Fri, 16 Jun 2023 03:28:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 65BCA63655; Fri, 16 Jun 2023 10:27:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 801D5C433D9; Fri, 16 Jun 2023 10:27:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686911262; bh=XFn1afc3CoB5JTiXT23yatsipLgYi74pLHBf8rgy/9A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iQqH9zeGv/b/+G9mbyR1e03jCagrCIr7p1JqlWuKpgi/HQD0+QEprpiXOMvuS8LCI GK9MThOY53OnWcw/QYLMvsovlYMmexxpQYLjbz3YaFvpr9NCQ00FJhOCU6PGBJaNeP yKiPUqhRDKntEw33umG5ZJmwMNI+8png9D60bTMsuSG5hgmNEGoiTji8AkBFE7Aiqn NJ7lzvGpIh95EV5Uopke+DTM8/nt9bH7ZWo4ZvBOpWh7pwMvZXbQZ86If2Y1fQN7fR aIvcYMEfsCVyrxdBny3qq9ahN4psfXp+Av7CZaWpyX/A+j2g3JP70GoE65PuElkIvT nEnktgQCqV2xg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Inki Dae , Andi Shyti , Sasha Levin , sw0312.kim@samsung.com, kyungmin.park@samsung.com, airlied@gmail.com, daniel@ffwll.ch, krzysztof.kozlowski@linaro.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH AUTOSEL 5.15 10/16] drm/exynos: vidi: fix a wrong error return Date: Fri, 16 Jun 2023 06:27:13 -0400 Message-Id: <20230616102721.673775-10-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230616102721.673775-1-sashal@kernel.org> References: <20230616102721.673775-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 5.15.117 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Inki Dae [ Upstream commit 4a059559809fd1ddbf16f847c4d2237309c08edf ] Fix a wrong error return by dropping an error return. When vidi driver is remvoed, if ctx->raw_edid isn't same as fake_edid_info then only what we have to is to free ctx->raw_edid so that driver removing can work correctly - it's not an error case. Signed-off-by: Inki Dae Reviewed-by: Andi Shyti Signed-off-by: Sasha Levin --- drivers/gpu/drm/exynos/exynos_drm_vidi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c index e5662bdcbbde3..e96436e11a36c 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c @@ -468,8 +468,6 @@ static int vidi_remove(struct platform_device *pdev) if (ctx->raw_edid != (struct edid *)fake_edid_info) { kfree(ctx->raw_edid); ctx->raw_edid = NULL; - - return -EINVAL; } component_del(&pdev->dev, &vidi_component_ops); -- 2.39.2