From mboxrd@z Thu Jan 1 00:00:00 1970 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 B3C25C4167B for ; Tue, 28 Nov 2023 07:31:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343737AbjK1HbO (ORCPT ); Tue, 28 Nov 2023 02:31:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232983AbjK1HbL (ORCPT ); Tue, 28 Nov 2023 02:31:11 -0500 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 128A4D41; Mon, 27 Nov 2023 23:31:13 -0800 (PST) Received: from francesco-nb.int.toradex.com (31-10-206-125.static.upc.ch [31.10.206.125]) by mail11.truemail.it (Postfix) with ESMTPA id D5DDA20378; Tue, 28 Nov 2023 08:31:11 +0100 (CET) Date: Tue, 28 Nov 2023 08:31:07 +0100 From: Francesco Dolcini To: Jiri Slaby Cc: Francesco Dolcini , Amitkumar Karwar , Neeraj Kale , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Francesco Dolcini , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 3/3] Bluetooth: btnxpuart: remove useless assignment Message-ID: References: <20231127191409.151254-1-francesco@dolcini.it> <20231127191409.151254-4-francesco@dolcini.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 28, 2023 at 06:26:56AM +0100, Jiri Slaby wrote: > On 27. 11. 23, 20:14, Francesco Dolcini wrote: > > From: Francesco Dolcini > > > > Remove useless assignment of rx_skb to NULL in case the skb is in error, > > this is already done in h4_recv_buf() that is executed a few lines > > before. > > In case of error, nxpdev->rx_skb contains the error, not NULL, right? correct. The point is that we have if (IS_ERR(skb)) skb = NULL; at the beginning of h4_recv_buf(), that is called a few lines before, making the assignment in btnxpuart.c redundant. Francesco