From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v2] net: usb: hso: use swap macro in hso_kick_transmit Date: Mon, 16 Jul 2018 13:35:58 -0700 (PDT) Message-ID: <20180716.133558.811562717227609278.davem@davemloft.net> References: <20180712194320.GA26098@embeddedor.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: gustavo@embeddedor.com Return-path: In-Reply-To: <20180712194320.GA26098@embeddedor.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: "Gustavo A. R. Silva" Date: Thu, 12 Jul 2018 14:43:20 -0500 > Make use of the swap macro and remove unnecessary variable *temp*. > This makes the code easier to read and maintain. Also, slightly > refactor some code due to the removal of *temp*. > > This code was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva > --- > Changes in v2: > - Check serial->tx_data instead of temp. Applied to net-next.