[PATCH 08/18] staging: wilc1000: remove declaration of WILC_WFI_frame_register

Greg KH gregkh at linuxfoundation.org
Mon Sep 21 02:01:43 UTC 2015


On Sun, Sep 20, 2015 at 03:51:15PM +0900, Chaehyun Lim wrote:
> This patch removes function declaration of WILC_WFI_frame_register in
> linux_wlan.c file, then adds it in wilc_wfi_cfgoperations.h file.
> 
> The compilation warning occurs because it is assigned to incorrect
> pointer type of second parameter of WILC_WFI_frame_register.
> It is assigned with struct wireless_dev pointer type.

How was this code ever even working properly if the wrong pointer was
being passed into it?

Tony, what is going on here, is this code just never called?  If so, can
we just delete the whole function?

thanks,

greg k-h


More information about the devel mailing list