Paulius Zaleckas wrote:
> wimax_gnl_doit_reset() defines variable dev, but
> does not use it.
> 
> Signed-off-by: Paulius Zaleckas <[email protected]>
> ---
> 
>  net/wimax/op-reset.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> 
> diff --git a/net/wimax/op-reset.c b/net/wimax/op-reset.c
> index ca26917..a3305b5 100644
> --- a/net/wimax/op-reset.c
> +++ b/net/wimax/op-reset.c
> @@ -111,7 +111,6 @@ int wimax_gnl_doit_reset(struct sk_buff *skb, struct 
> genl_info *info)
>  {
>       int result, ifindex;
>       struct wimax_dev *wimax_dev;
> -     struct device *dev;
>  
>       d_fnstart(3, NULL, "(skb %p info %p)\n", skb, info);
>       result = -ENODEV;
> @@ -124,7 +123,6 @@ int wimax_gnl_doit_reset(struct sk_buff *skb, struct 
> genl_info *info)
>       wimax_dev = wimax_dev_get_by_genl_info(info, ifindex);
>       if (wimax_dev == NULL)
>               goto error_no_wimax_dev;
> -     dev = wimax_dev_to_dev(wimax_dev);
>       /* Execute the operation and send the result back to user space */
>       result = wimax_reset(wimax_dev);
>       dev_put(wimax_dev->net_dev);

Forgot to mention that this patch can be applied to master branch.
_______________________________________________
wimax mailing list
[email protected]
http://lists.linuxwimax.org/listinfo/wimax

Reply via email to