Re: [PATCH 2/5] w35und: remove unused wb35_open() and wb35_close()functions

From: Pavel Machek
Date: Thu Oct 23 2008 - 05:45:07 EST


On Wed 2008-10-22 19:06:13, Pekka J Enberg wrote:
> From: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
>
> The functions are not used anywhere so remove them.
>
> Cc: Pavel Machek <pavel@xxxxxxx>
> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx>

ACK.

> ---
> drivers/staging/winbond/linux/wbusb.c | 19 -------------------
> drivers/staging/winbond/linux/wbusb_f.h | 2 --
> 2 files changed, 0 insertions(+), 21 deletions(-)
>
> diff --git a/drivers/staging/winbond/linux/wbusb.c b/drivers/staging/winbond/linux/wbusb.c
> index 4b989c5..c3394bf 100644
> --- a/drivers/staging/winbond/linux/wbusb.c
> +++ b/drivers/staging/winbond/linux/wbusb.c
> @@ -308,25 +308,6 @@ WbUsb_destroy(phw_data_t pHwData)
> {
> }
>
> -int wb35_open(struct net_device *netdev)
> -{
> - struct wb35_adapter * adapter = (struct wb35_adapter *)netdev->priv;
> - phw_data_t pHwData = &adapter->sHwData;
> -
> - netif_start_queue(netdev);
> -
> - //TODO : put here temporarily
> - hal_set_accept_broadcast(pHwData, 1); // open accept broadcast
> -
> - return 0;
> -}
> -
> -int wb35_close(struct net_device *netdev)
> -{
> - netif_stop_queue(netdev);
> - return 0;
> -}
> -
> static void wb35_disconnect(struct usb_interface *intf)
> {
> struct wb35_adapter * adapter = usb_get_intfdata(intf);
> diff --git a/drivers/staging/winbond/linux/wbusb_f.h b/drivers/staging/winbond/linux/wbusb_f.h
> index 0402f66..a1d5946 100644
> --- a/drivers/staging/winbond/linux/wbusb_f.h
> +++ b/drivers/staging/winbond/linux/wbusb_f.h
> @@ -11,8 +11,6 @@
> //
> //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> -int wb35_open(struct net_device *netdev);
> -int wb35_close(struct net_device *netdev);
> unsigned char WbUsb_initial(phw_data_t pHwData);
> void WbUsb_destroy(phw_data_t pHwData);
> unsigned char WbWLanInitialize(struct wb35_adapter *adapter);

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/