]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: media: tegra-video: Remove the use of dev_err_probe()
authorXichao Zhao <zhao.xichao@vivo.com>
Tue, 19 Aug 2025 11:00:59 +0000 (19:00 +0800)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 14 Oct 2025 13:07:36 +0000 (15:07 +0200)
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 <zhao.xichao@vivo.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/staging/media/tegra-video/tegra20.c

index 1473f1b1f2034378b0dfae582fae11bfbe76c028..aa9ff7fec4f9c5db721d8072f4206f8e16da8edf 100644 (file)
@@ -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;