Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2729352pxb; Mon, 31 Jan 2022 03:05:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlnsXamg18ogPixn4BJ6kej03xUZ3h0bQWRhwRQnvNAs2EduYDpXryPDZH/a2rtXP3gCTX X-Received: by 2002:a17:90a:c20a:: with SMTP id e10mr32973630pjt.165.1643627100768; Mon, 31 Jan 2022 03:05:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643627100; cv=none; d=google.com; s=arc-20160816; b=kBPL0TCdoVKPe6v+Adsa+aCyIcbO49APtvdIw0wH95GWi/8uNg17p0Ges/qCFnbMcn 0LlD2Vq0rd+sr9XinRc6cm6zJI3fawRhSyhNx0EXsDvVsZ7AgZ48DsVyRf+5h3uD6iAM NGIxls1cLkIiFa2Tm+0+E7Hx1+WXIm+lxLnV/RHaU48hZ6EIjAQekncgZyjvsbHnj7z7 tDIif5AZscN+zgXKPvZVhKa+87dXLDS+4Kg7Fru0/BYfG4r06P/bcprLfrw9mav4q8N3 YoSahtLRBYQG+vnUaFWZAYLdIrddcf69zGpKHruAHvP7u9QFP5HQz7Ww8brvZN7L3BWI +Mnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=mGe1lGDfndrXgNX1ztEuImo8kDO4OUP9dre/PfrtEVQ=; b=u+hx/NVFvpE7ekSHs6RkNLST00v+9XSGi8nJFRFKqPbxWDk2Xf+DGJQHQ32oWpCqK4 spRQN7228uMDZluoA1qc91TO8motHYM4nzYo7P99jcFGNmLLUd1y2cygxvlkGeor1+Lu EiyweTvOvLHcamitjbhWaDlJ+ypL+P+QHmd164EENwwiysOYw2mKKWfDVrziaayI6WPn paDhDtBISWvpet9IUtx9VcilkErhWpu+kLNCgb7C2qJ9gl0b8H7PklmYOcVpjuaFAJaq zRvuaaB9Osv1NxQL3ZPBF1K53hGAFWYnJYaXmL+5ZZQWCfRFyWnt+6qU/aA1t2tOWCRC Ze3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y190si11998107pgd.653.2022.01.31.03.04.49; Mon, 31 Jan 2022 03:05:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244748AbiA1Nwk (ORCPT + 99 others); Fri, 28 Jan 2022 08:52:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232854AbiA1Nwj (ORCPT ); Fri, 28 Jan 2022 08:52:39 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 048D9C06173B for ; Fri, 28 Jan 2022 05:52:39 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nDRft-000104-Ul; Fri, 28 Jan 2022 14:52:25 +0100 Received: from pengutronix.de (unknown [195.138.59.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id B752525D63; Fri, 28 Jan 2022 13:52:23 +0000 (UTC) Date: Fri, 28 Jan 2022 14:52:17 +0100 From: Marc Kleine-Budde To: Muhammad Usama Anjum Cc: Steve Longerbeam , Philipp Zabel , Mauro Carvalho Chehab , Greg Kroah-Hartman , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Martin Kepplinger , Hans Verkuil , linux-staging@lists.linux.dev, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Subject: Re: [PATCH] media: imx: imx8mq-mipi_csi2: Remove unneeded code Message-ID: <20220128135217.ncvjlffzpxxmqbjo@pengutronix.de> References: <20220128133649.1393201-1-usama.anjum@collabora.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dx5rohrd5cck77jd" Content-Disposition: inline In-Reply-To: <20220128133649.1393201-1-usama.anjum@collabora.com> X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --dx5rohrd5cck77jd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 28.01.2022 18:36:49, Muhammad Usama Anjum wrote: > ret is constant in imx8mq_mipi_csi_pm_suspend(). This function cannot > return error. Remove the return variable. Simplify other functions which > are using this function. >=20 > Fixes: f0c2ba1ed4ad ("media: imx: imx8mq-mipi_csi2: fix system resume") > Signed-off-by: Muhammad Usama Anjum > --- > drivers/staging/media/imx/imx8mq-mipi-csi2.c | 16 ++++------------ > 1 file changed, 4 insertions(+), 12 deletions(-) >=20 > diff --git a/drivers/staging/media/imx/imx8mq-mipi-csi2.c b/drivers/stagi= ng/media/imx/imx8mq-mipi-csi2.c > index 3b9fa75efac6b..c992b845e63d1 100644 > --- a/drivers/staging/media/imx/imx8mq-mipi-csi2.c > +++ b/drivers/staging/media/imx/imx8mq-mipi-csi2.c [...] > static int imx8mq_mipi_csi_pm_resume(struct device *dev) > @@ -742,15 +739,12 @@ static int __maybe_unused imx8mq_mipi_csi_suspend(s= truct device *dev) > { > struct v4l2_subdev *sd =3D dev_get_drvdata(dev); > struct csi_state *state =3D mipi_sd_to_csi2_state(sd); > - int ret; > =20 > - ret =3D imx8mq_mipi_csi_pm_suspend(dev); > - if (ret) > - return ret; > + imx8mq_mipi_csi_pm_suspend(dev); > =20 > state->state |=3D ST_SUSPENDED; what about this flag? Marc > =20 > - return ret; > + return 0; > } --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --dx5rohrd5cck77jd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEK3kIWJt9yTYMP3ehqclaivrt76kFAmHz9Q4ACgkQqclaivrt 76lVnwf+NtLWUcGwRaQU8qVIfD2JIN5aGN77aOgc7JGPbxiAkgkUykI369EyomLn oYXYq5vqJBX028EJq7ON0lPwN89keJ0eK/zIUns+iwNq8qeKeiT0tdZEIcF7zSkN zbwTw8HScw962Js4SOlDqK2HZdnTq27zkI3H4EVxKwu6UWxfHnJjwU0nwDVIt3vQ o+YOvYGjRqYeDZpGgyBOvbVRVI8Q19wSa9HxSLbYqOkJCQ7LWm3NTuNIZ2dUiuHi UqjO12a7S4bUnW8u7tOIFh1IxMH8wfoV4icv+EcDFgdM4ucEkkyVD81xChU8PY/P okLuFoWo4I1iCaTY+Ucelrmx7to+OQ== =yv42 -----END PGP SIGNATURE----- --dx5rohrd5cck77jd--