From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753555AbdEIMWB (ORCPT ); Tue, 9 May 2017 08:22:01 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:61722 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752597AbdEIMV7 (ORCPT ); Tue, 9 May 2017 08:21:59 -0400 X-IronPort-AV: E=Sophos;i="5.38,314,1491289200"; d="scan'208";a="380193286" X-IronPort-AV: E=McAfee;i="5800,7501,8522"; a="921891644" X-MGA-submission: =?us-ascii?q?MDHVzTZ7Pl1hqx0veBDlx/N0/UQL+j8imhuK7+?= =?us-ascii?q?qti9XxPPGTGVt7VxHAHgnTzBPtN0tSYoMkyvOPTV0j0WaY+ICbXsc6BC?= =?us-ascii?q?0kOIy9B7ptFPmaUBch9Q29d+eolRn1fa5Ggxz3zdCYz3WbMIQ1eBwoFz?= =?us-ascii?q?ag?= From: Kalle Valo To: "Gustavo A. R. Silva" CC: ath9k-devel , "linux-wireless@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] net: wireless: ath: ath9k: remove unnecessary code Thread-Topic: [PATCH] net: wireless: ath: ath9k: remove unnecessary code Thread-Index: AQHSyL7Y8LfpVclLgkmaLIIkjaadyA== Date: Tue, 9 May 2017 12:21:54 +0000 Message-ID: <87shkez0da.fsf@kamboji.qca.qualcomm.com> References: <20170509034814.GA18034@embeddedgus> <87efvy1d07.fsf@kamboji.qca.qualcomm.com> <20170509070158.Horde.dYleVB-aK1cNNyQpdVsVMNp@gator4166.hostgator.com> In-Reply-To: <20170509070158.Horde.dYleVB-aK1cNNyQpdVsVMNp@gator4166.hostgator.com> (Gustavo A. R. Silva's message of "Tue, 9 May 2017 07:01:58 -0500") Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.251.52.12] Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v49CMJ2s030994 "Gustavo A. R. Silva" writes: > Hi Kalle, > > Quoting Kalle Valo : > >> "Gustavo A. R. Silva" writes: >> >>> The name of an array used by itself will always return the array's address. >>> So this test will always evaluate as true. >>> >>> Addresses-Coverity-ID: 1364903 >>> Signed-off-by: Gustavo A. R. Silva >>> --- >>> drivers/net/wireless/ath/ath9k/eeprom.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/drivers/net/wireless/ath/ath9k/eeprom.c >>> b/drivers/net/wireless/ath/ath9k/eeprom.c >>> index fb80ec8..5c3bc28 100644 >>> --- a/drivers/net/wireless/ath/ath9k/eeprom.c >>> +++ b/drivers/net/wireless/ath/ath9k/eeprom.c >>> @@ -143,7 +143,7 @@ bool ath9k_hw_nvram_read(struct ath_hw *ah, u32 >>> off, u16 *data) >>> >>> if (ah->eeprom_blob) >>> ret = ath9k_hw_nvram_read_firmware(ah->eeprom_blob, off, data); >>> - else if (pdata && !pdata->use_eeprom && pdata->eeprom_data) >>> + else if (pdata && !pdata->use_eeprom) >>> ret = ath9k_hw_nvram_read_pdata(pdata, off, data); >>> else >>> ret = common->bus_ops->eeprom_read(common, off, data); >> >> The patch may very well be valid (didn't check yet) but the commit log >> is gibberish for me. >> > > Let me correct that and I'll send the patch again. Thanks. Also no need to have that long "net: wireless: ath:" prefix, "ath9k: " or "ath10k: " is enough. -- Kalle Valo