[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170509073442.Horde.Q8CbZi0XhNUcuRQ3NxtQfks@gator4166.hostgator.com>
Date: Tue, 09 May 2017 07:34:42 -0500
From: "Gustavo A. R. Silva" <garsilva@...eddedor.com>
To: Arend Van Spriel <arend.vanspriel@...adcom.com>
Cc: Kalle Valo <kvalo@....qualcomm.com>, netdev@...r.kernel.org,
linux-wireless@...r.kernel.org, linux-kernel@...r.kernel.org,
ath10k@...ts.infradead.org
Subject: Re: [PATCH] net: wireless: ath: ath10k: remove unnecessary code
Hi Arend,
Quoting Arend Van Spriel <arend.vanspriel@...adcom.com>:
> On 9-5-2017 7:33, Kalle Valo wrote:
>> "Gustavo A. R. Silva" <garsilva@...eddedor.com> 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 <garsilva@...eddedor.com>
>>
>> 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.
>
Definitely. Thank you!
--
Gustavo A. R. Silva
Powered by blists - more mailing lists