[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <576C556B.1040509@osg.samsung.com>
Date: Thu, 23 Jun 2016 22:32:27 +0100
From: Luis de Bethencourt <luisbg@....samsung.com>
To: Joe Perches <joe@...ches.com>, linux-kernel@...r.kernel.org
CC: johnny.kim@...el.com, austin.shin@...el.com, chris.park@...el.com,
tony.cho@...el.com, glen.lee@...el.com, leo.kim@...el.com,
gregkh@...uxfoundation.org, linux-wireless@...r.kernel.org,
devel@...verdev.osuosl.org
Subject: Re: [PATCH] staging: wilc1000: arrays can't be NULL
On 23/06/16 20:24, Joe Perches wrote:
> On Thu, 2016-06-23 at 18:57 +0100, Luis de Bethencourt wrote:
>> hif_drv->usr_scan_req.net.net_info[i] contains found_net_info structs
>> which have the following element:
>> u8 bssid[6];
> []
>> I am aware this patch gives a few checkpatch.pl warnings about lines being
>> over 80 characters. Fixing that would be a completely different issue, and
>> a lengthy one since the file has loads of them.
>>
>> Hopefully somebody else picks that up. Maybe I should send a hit to the
>> kernelnewbies mailing list :)
>
> Or not.
>
> really_long_identifiers™ makes using 80 columns silly.
I agree. Not a priority, at all.
>
> The hungarian could probably be converted though.
>
I could look into this tomorrow.
I noticed, for example these 3 in the same function:
struct wid strWIDList[8];
u32 u32WidsCount = 0, dummyval = 0;
u8 *pu8CurrByte = NULL;
Not pretty and cleaning those should take little time.
> A log of the memcpy and memcpy uses could probably be
> converted to ether_addr_<foo> too.
>
Switching memcpy for ether_addr_copy and memcmp for ether_addr_equal.
I could send a patch for this as well, but I would need to have somebody
test it for me. Or maybe get this hardware for myself and do it properly.
Do you approve of my original patch?
Thanks for the review :)
Luis
Powered by blists - more mailing lists