From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753470AbdEIMII (ORCPT ); Tue, 9 May 2017 08:08:08 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:34228 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751873AbdEIMIF (ORCPT ); Tue, 9 May 2017 08:08:05 -0400 Subject: Re: [PATCH] net: wireless: ath: ath10k: remove unnecessary code To: Kalle Valo , "Gustavo A. R. Silva" References: <20170509042159.GA19727@embeddedgus> <87lgq6387s.fsf@kamboji.qca.qualcomm.com> Cc: "netdev@vger.kernel.org" , "linux-wireless@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "ath10k@lists.infradead.org" From: Arend Van Spriel Message-ID: <76408651-07c6-fe31-863f-e1cb73b49663@broadcom.com> Date: Tue, 9 May 2017 14:07:57 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <87lgq6387s.fsf@kamboji.qca.qualcomm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9-5-2017 7:33, Kalle Valo wrote: > "Gustavo A. R. Silva" writes: > >> The name of an array used by itself will always return the array's address. >> So these tests will always evaluate as false and therefore the _return_ >> will never be executed. >> >> Signed-off-by: Gustavo A. R. Silva > > I don't understand the commit log, especially what does "The name of an > array used by itself" mean? The array fields in struct wmi_start_scan_arg that are checked here are fixed size arrays so they can never be NULL. Maybe that helps rephrasing this commit message. Regards, Arend