From: Xichao Zhao Date: Tue, 19 Aug 2025 11:00:59 +0000 (+0800) Subject: staging: media: tegra-video: Remove the use of dev_err_probe() X-Git-Tag: v6.19-rc1~159^2~242 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=801d26487f34d6d7561668082c0276ac5e0767f4;p=thirdparty%2Flinux.git staging: media: tegra-video: Remove the use of dev_err_probe() The dev_err_probe() doesn't do anything when error is '-ENOMEM'. Therefore, remove the useless call to dev_err_probe(), and just return the value instead. Signed-off-by: Xichao Zhao Signed-off-by: Hans Verkuil --- diff --git a/drivers/staging/media/tegra-video/tegra20.c b/drivers/staging/media/tegra-video/tegra20.c index 1473f1b1f2034..aa9ff7fec4f9c 100644 --- a/drivers/staging/media/tegra-video/tegra20.c +++ b/drivers/staging/media/tegra-video/tegra20.c @@ -255,7 +255,7 @@ static int tegra20_channel_host1x_syncpt_init(struct tegra_vi_channel *chan) out_sp = host1x_syncpt_request(&vi->client, HOST1X_SYNCPT_CLIENT_MANAGED); if (!out_sp) - return dev_err_probe(vi->dev, -ENOMEM, "failed to request syncpoint\n"); + return -ENOMEM; chan->mw_ack_sp[0] = out_sp;