Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2738719pxb; Mon, 31 Jan 2022 03:17:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDgGIn5l50zqFMaUkEHpZGq0in/21OCfHcBocTlgpdz3JBNRaAkGxGW8cNk22fSshFwEdT X-Received: by 2002:a17:907:728b:: with SMTP id dt11mr16331208ejc.70.1643627864828; Mon, 31 Jan 2022 03:17:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643627864; cv=none; d=google.com; s=arc-20160816; b=Qg4hcCrd/rBRLWPKsVRbOx831bYVD+JJLZjOZxA6NTFCYGKZg5XhZQHJTIs4rysL1b p7K1orafdOWZeDwq7pM6F27S1PzUfvwPwVMh6Leb6LQ4FipC2A1qb1bbDSV1bruGrOIk O8bkuBxz/OgbZu/OPnr+mwb3ttQE9exB40FCUWbkUXC3ORodgPTpbpfrjRERbb2G0m99 hAsd9BZfP7yjLJKqMsaJQvzbH/k0PBu+4IaJPmxskp0fVB2Pn5Ol6urz96rCboTnPqBO 5eh2axGcBNv1egcIP/JDjMhx2rM5kg2HGRveX9S1TCdGUa4Tu2jljYriBVwo7+CoOD/F 7f4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=sbZKWsHJkalKhUpXu01Uv/vjdYsALlFDBYcY+6MyeMQ=; b=WIbGCLUGaZcprEBq5FHmb8fLMQPrBLc0seCOZMOGDPxCnEl3AcAmrAAojwF7WcGbs7 eH6xIqAXsa3Pifx2qBCYnxPa4eRJebwttxTTzPgQ3OmALZLqxwKa4XXzFtYaR/RE4zpp RE74Fx02UIJiTRWIz7qz9iq5ZjDVZd/2lebdhtns4x3+m2MZnM+KFgRYNOz8t86pmYrd N4qSWTmaCBvWSq72D9PJ8VGKnXlLmV/4loldEn6KAMWQFLb257KTiWI0znSt3a99uAyp eatKXRiiKqdE+DeW+1sAjHTPGtmjT28OpjNwO3ak0QteQpqP/v8sJurjKmVGbi51l4Ug dA/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QzCBjF31; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c16si8470874ede.163.2022.01.31.03.17.20; Mon, 31 Jan 2022 03:17:44 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QzCBjF31; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349854AbiA1QYP (ORCPT + 99 others); Fri, 28 Jan 2022 11:24:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350146AbiA1QX5 (ORCPT ); Fri, 28 Jan 2022 11:23:57 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD86BC06173B; Fri, 28 Jan 2022 08:23:56 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id p15so17641572ejc.7; Fri, 28 Jan 2022 08:23:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sbZKWsHJkalKhUpXu01Uv/vjdYsALlFDBYcY+6MyeMQ=; b=QzCBjF31P01lAnXfncXg51KSZ75EHiN6F92VXUsfEGTcw+KfdYSKZex/ygYm3fMI6U 9k185flwZIQiTF7Lm0dCNYOM0b1xn4qRzUfBqwzajNNwMcDdxLAWDLtw19NZpPmW73F4 pkGQqlFTeJUZOaaGGBOUyKyCC/lTgWESisGBOvCG6Qt8Yg8IC5L2NL6UOH/FgwflXxPx MrQuqSZZze4Xgq73WshcZBuudO2UdOJwIPEgmLf+ucnCvalzczdhkEcK96qPZHlMUrCD qi8h7Fg53g/KCQh0e8afQQK4i+9jKVcbF4Xx4lidr9koUQuWJk5ISr9ksyh/EmZsEroC Ck0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sbZKWsHJkalKhUpXu01Uv/vjdYsALlFDBYcY+6MyeMQ=; b=0tY3BZGYdTsuDCuHwaTLjSaRHQyFbg4j1yz+tjHG9WY7RIlERmRboTGjIpfpNLmI9F 91ngPdeTg6YdmN4iqa3LwsgYMFwK012zB9GTcYa0DxXJRu2M/S3x0XCdj9qWuCcJ0osz QKIsNK80QubPGbo7gi9p/vyDtYZtcxxS6qsIyno2LoiQclaxC7OJFsEgKJ4O/5QB1nDU +dSrzoKrKBaYgPcZwLk04zh3Z8w8YOjWRfhOOdX4PE6HC2P5QYkrLEcTe0JhmNeZyIUm UDQqZxTWQ9625lLxkl1CMugptDfaLuUIivo1EtL5besT0Hj60oaiAreoM2LjFnjU7/l8 mS2w== X-Gm-Message-State: AOAM533cDYNRjQuLVD0mSUTfysSs70vgSUuOcxg/UwbuPDecflGl0vtV VvLSMxN+hK884qn3lEHRC0CeP1bSMrv98V6lf30= X-Received: by 2002:a17:906:99c3:: with SMTP id s3mr7712428ejn.696.1643387035286; Fri, 28 Jan 2022 08:23:55 -0800 (PST) MIME-Version: 1.0 References: <20220128133649.1393201-1-usama.anjum@collabora.com> In-Reply-To: <20220128133649.1393201-1-usama.anjum@collabora.com> From: Fabio Estevam Date: Fri, 28 Jan 2022 13:23:43 -0300 Message-ID: Subject: Re: [PATCH] media: imx: imx8mq-mipi_csi2: Remove unneeded code To: Muhammad Usama Anjum Cc: Steve Longerbeam , Philipp Zabel , Mauro Carvalho Chehab , Greg Kroah-Hartman , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , Martin Kepplinger , Hans Verkuil , kernel@collabora.com, kernel-janitors@vger.kernel.org, linux-media , linux-staging@lists.linux.dev, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Muhammad, On Fri, Jan 28, 2022 at 10:38 AM 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. > > Fixes: f0c2ba1ed4ad ("media: imx: imx8mq-mipi_csi2: fix system resume") The patch looks good. I would suggest removing the Fixes tag though as this is more of a clean-up rather than a bug fix.