From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757577AbcHCK0G (ORCPT ); Wed, 3 Aug 2016 06:26:06 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:35462 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754496AbcHCK0D (ORCPT ); Wed, 3 Aug 2016 06:26:03 -0400 From: Kalle Valo To: Heinrich Schuchardt Cc: Larry Finger , Chaoming Li , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1 v2] rtlwifi: remove superfluous condition References: <4e6de16f-b42c-920a-60a2-fcc88e282dc0@lwfinger.net> <1470165981-6241-1-git-send-email-xypron.glpk@gmx.de> Date: Wed, 03 Aug 2016 09:01:54 +0300 In-Reply-To: <1470165981-6241-1-git-send-email-xypron.glpk@gmx.de> (Heinrich Schuchardt's message of "Tue, 2 Aug 2016 21:26:21 +0200") Message-ID: <8737mm5r1p.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Heinrich Schuchardt writes: > If sta == NULL, the changed line will not be reached. > So no need to check that sta != NULL here. > > v2: > fix typo > > Signed-off-by: Heinrich Schuchardt > Acked-by: Larry Finger > --- > drivers/net/wireless/realtek/rtlwifi/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) The change log goes under the "---" line so that git can automatically strip it away while committing the patch. I can fix it this time but please keep this in mind in the future. -- Kalle Valo