From patchwork Thu May 25 11:33:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 686293 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 8208FC77B7E for ; Thu, 25 May 2023 11:34:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240972AbjEYLdl (ORCPT ); Thu, 25 May 2023 07:33:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240946AbjEYLde (ORCPT ); Thu, 25 May 2023 07:33:34 -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 BF046191 for ; Thu, 25 May 2023 04:33:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4852160B90 for ; Thu, 25 May 2023 11:33:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FA5AC433EF for ; Thu, 25 May 2023 11:33:31 +0000 (UTC) Message-ID: Date: Thu, 25 May 2023 13:33:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-US To: Linux Media Mailing List From: Hans Verkuil Subject: [PATCH] tegra-video: host1x_client_unregister now returns void Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The host1x_client_unregister() function became a void function, so stop using the error return value. Signed-off-by: Hans Verkuil diff --git a/drivers/staging/media/tegra-video/vip.c b/drivers/staging/media/tegra-video/vip.c index 6e71d56bc7e3..a1ab886acc18 100644 --- a/drivers/staging/media/tegra-video/vip.c +++ b/drivers/staging/media/tegra-video/vip.c @@ -257,11 +257,8 @@ static int tegra_vip_probe(struct platform_device *pdev) static int tegra_vip_remove(struct platform_device *pdev) { struct tegra_vip *vip = platform_get_drvdata(pdev); - int err; - err = host1x_client_unregister(&vip->client); - if (err) - return dev_err_probe(&pdev->dev, err, "failed to unregister host1x client\n"); + host1x_client_unregister(&vip->client); pm_runtime_disable(&pdev->dev);