Return-path: Received: from mail-la0-f53.google.com ([209.85.215.53]:62972 "EHLO mail-la0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754693AbaFNNXg (ORCPT ); Sat, 14 Jun 2014 09:23:36 -0400 Received: by mail-la0-f53.google.com with SMTP id b8so655773lan.40 for ; Sat, 14 Jun 2014 06:23:35 -0700 (PDT) From: Rickard Strandqvist To: Larry Finger , Chaoming Li Cc: Rickard Strandqvist , "John W. Linville" , Joe Perches , Peter Wu , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] net: wireless: rtlwifi: rtl8188ee: hw.c: Cleaning up if statement that always evaluates to false Date: Sat, 14 Jun 2014 15:24:31 +0200 Message-Id: <1402752272-13696-1-git-send-email-rickard_strandqvist@spectrumdigital.se> (sfid-20140614_152418_942396_B59EDD70) Sender: linux-wireless-owner@vger.kernel.org List-ID: I found a logical error in an if statement that always evaluates to false. This has after same discussion resulted in that we add a macro to handle this. This was partly found using a static code analysis program called cppcheck. Rickard Strandqvist (1): net: wireless: rtlwifi: rtl8188ee: hw.c: Cleaning up if statement that always evaluates to false drivers/net/wireless/rtlwifi/rtl8188ee/hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.7.10.4