Re: [PATCH v2 4/7] drivers/net/wireless: Use STD_IW_HANDLER macro
From: Pavel Roskin <hidden>
Date: 2010-03-18 17:25:29
Also in:
linux-wireless, lkml
From: Pavel Roskin <hidden>
Date: 2010-03-18 17:25:29
Also in:
linux-wireless, lkml
On Wed, 2010-03-17 at 23:21 -0700, Joe Perches wrote:
Convert direct uses of [ (foo - SIOCIWFIRST) , fn) Signed-off-by: Joe Perches <joe@perches.com>
...
static const iw_handler wl3501_handler[] = {
- [SIOCGIWNAME - SIOCIWFIRST] = wl3501_get_name,...
+ STD_IW_HANDLER(SIOCGIWNAME, wl3501_get_name),
You are introducing an unnecessary cast here. That's bad. -- Regards, Pavel Roskin