From patchwork Fri Dec 22 16:37:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Elfring X-Patchwork-Id: 13503551 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6586FC46CD4 for ; Fri, 22 Dec 2023 16:38:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:Cc:To:From: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/2cG4sZIMm65mldppP2ARaDe/Zme0K9xileQ9I5M/eo=; b=QZkQF++VBz5wgL L5ixXhScmWDH9zXLC67u5mkNYI5A2NAId8wfe/E4qsxKruLPkb2eC8QdlZ+Ng6gdKyRrD0HJvrvKb YvfV6auN1eUItrRSO0jWUyYhACze0BsFX9XQVFbk4Nye+jzYvZ1rrfcjDa+yeh/eZqtVp1i/f7fhE ubs4OHxdojtdexd17ZNQfCPXQyXcCFEjIk0/XZdJGaZsKkbApMVD2CPFWUG+pAXynPj+09UO/KeXm N/sg8akXSfyXOac3MxODUiUWXuh+lTIyaBWk6OgcsY/bbfFpqs29b7jSt3tEbDjzxSgQiPtIDLlnf rLfm2dU7LS6yKG206RCA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rGiXB-006Qud-1d; Fri, 22 Dec 2023 16:38:01 +0000 Received: from mout.web.de ([212.227.17.11]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rGiX8-006Qtf-1p for linux-arm-kernel@lists.infradead.org; Fri, 22 Dec 2023 16:38:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1703263071; x=1703867871; i=markus.elfring@web.de; bh=v9wsO4hBMKaYP4jfM0OembEpsGFWQxtzsw3ZTzzqTD4=; h=X-UI-Sender-Class:Date:Subject:From:To:Cc:References: In-Reply-To; b=AKXU6OZLEN8VvHj8rNjOWKQyKiT0wyk1c4d7UmwymM6esWyG97jFAwalvuhYTx98 GeNBCXYHOnlMSH64LOXoHnXbhmFa8reXHRSfMsgBsm3RhXG43YP36oOKG18Q89B/C m8NT+f8zdUDdBiU0j7HdKifjpS9VgXwpFf7Q7dztF5z5UlsRCZgQx/OP7u9Il8SJI SLUoGRT9d2Tlgj70S9WUuetVelspUE9xv8PPgxd2CpCHQj4Sloz4y97agf+9Hv8t/ SVn30alM2FZlvDjgq5C6BnQbf5j4/C6vSIdL30gOtb/jGjXDyhpLjTJ+0GFOsJ6jy yjNU/wb81xVNLP5yew== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.85.95]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MXoYQ-1rmczK2fvQ-00YFjv; Fri, 22 Dec 2023 17:37:50 +0100 Message-ID: <6604590e-d0f7-4798-a1b9-b2f474f3a642@web.de> Date: Fri, 22 Dec 2023 17:37:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH 2/2] clk: imx: composite-8m: Delete two unnecessary initialisations in __imx8m_clk_hw_composite() Content-Language: en-GB From: Markus Elfring To: Abel Vesa , Fabio Estevam , Michael Turquette , Peng Fan , Sascha Hauer , Shawn Guo , Stephen Boyd , kernel@pengutronix.de, linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel-janitors@vger.kernel.org Cc: LKML , cocci@inria.fr References: <1d494176-2238-4430-bc26-4e4c78fe4ede@web.de> In-Reply-To: <1d494176-2238-4430-bc26-4e4c78fe4ede@web.de> X-Provags-ID: V03:K1:D+hRhIGTK8aStCOJ4/CTmR4XIynD0hvKNWsh/EXmXF5nGjX+fKy L1EIRb2Q/nJZKSH9LASVJyHGxATwbJMQKr4C8ZHDxTcdmoiwNBHHGD6dBHT++3Ige5U6L9J YbxrIKRvcckfvescYp7Sfekcy+soKVrs0KE++hlOa+MZVrmTMgtl3Mlkndhwn8/WJhM1FHd f0eySxAgXj3/ZW03A8HXw== UI-OutboundReport: notjunk:1;M01:P0:SujinENInQQ=;w2IzoUAeX5pp8p2u84Zb/qKh2i9 zBTq3+IRxhpwyqD4mK24y6zREu8WH/sj+rZdtGcnwAdw04meKlf4kqwF0Iae36C9otmkC6PSF 6uH6/7WlQRROqsXja8ax4rV1WY+ps4vtTZty7Hg+LGQZC8VWiIkV/uLwwZWy5spzWEV/OtX5g c0LVw+Vcz4kgTKQsbIcUVu34PLFtGfT5XUw7QCQlHeXU0C+zGFSjpL63l4N6uWk94LXKGyl2U fJV95dcDIjAejovxCHXOQHzXwDC5KCiaQSiE9TytieEk253ulVOQwmJnKEry7CwLLNrBNa7AN NFxE88sF2K0OubysXPVdJg5osqmG5tYNpCHbyBFr9xN9wcvdF6puV/g9jbInLwVBEvp6aurfS epr1Rniscpo9OhUz+SHsGf9nZzrqUuzs/yw/0FwWfmm+n1ONwI4vkD/AO73Ws9u+lYgudGSDg mXujF8s3duJcI4dsj6GnE5lROfB6B7268S4NW5GeQkHJhIf0kBVTEee2MqMR+NhnH+lLyB+E+ GbARBgokg9V0+cNh0TA3cxrKOCh48rJK10qd9QmHdcpBzWYtNfKzyWvvZI5vaibnDXZIf8g1Z C7+gVBolPfP65ESBfje7TFqR8VsxW3ueO0TrwICuqzDoeSSm/ge05WzFwJSYj3lecAznkTYs0 GYsTXsAiK0+ex9/OmZgQwzXTf3r0v6nXjpvw2W//NVi2+pzy/ghLB7k/AIZvUYjK1DlAAYqFM JjGg3FukiwaajfbZHRQoyoziibI1ruaFuTycSJgQGvz21LVf4ZwU+99nkcKxMTAVdrvltEutS YO8u6EytTiyS49mqTfr/misIK1puqMoz71K4thAo0NwQ81CRyqXE9PaSONxS+AZuvTVbQZIxD EIRaSjpMpacbk1PPVwd75LRlZ5DPZgsI1HgWZHcqcwJ2mghmreqeF7jUymx4IivU8qVNlx0KX nkXBOg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231222_083758_901074_80842887 X-CRM114-Status: UNSURE ( 8.77 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Markus Elfring Date: Fri, 22 Dec 2023 17:11:03 +0100 Two local variables will eventually be set to appropriate pointers a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring Reviewed-by: Peng Fan --- drivers/clk/imx/clk-composite-8m.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.43.0 diff --git a/drivers/clk/imx/clk-composite-8m.c b/drivers/clk/imx/clk-composite-8m.c index eb5392f7a257..8cc07d056a83 100644 --- a/drivers/clk/imx/clk-composite-8m.c +++ b/drivers/clk/imx/clk-composite-8m.c @@ -212,9 +212,9 @@ struct clk_hw *__imx8m_clk_hw_composite(const char *name, { struct clk_hw *hw = ERR_PTR(-ENOMEM), *mux_hw; struct clk_hw *div_hw, *gate_hw = NULL; - struct clk_divider *div = NULL; + struct clk_divider *div; struct clk_gate *gate = NULL; - struct clk_mux *mux = NULL; + struct clk_mux *mux; const struct clk_ops *divider_ops; const struct clk_ops *mux_ops;