Messages in this thread | | | Subject | Re: [PATCH] net: wireless: ath: ath10k: remove unnecessary code | From | Arend Van Spriel <> | Date | Tue, 9 May 2017 14:07:57 +0200 |
| |
On 9-5-2017 7:33, Kalle Valo wrote: > "Gustavo A. R. Silva" <garsilva@embeddedor.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@embeddedor.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.
Regards, Arend
| |