On Fri, May 15, 2015 at 09:35:17PM +0300, Pekka Enberg wrote:
> Use kvfree() instead of open-coding it.
> 
> Cc: Dmitry Torokhov <dmitry.torok...@gmail.com>
> Signed-off-by: Pekka Enberg <penb...@kernel.org>

Applied, thank you.

> ---
>  drivers/input/evdev.c | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
> index a18f41b..9d35499 100644
> --- a/drivers/input/evdev.c
> +++ b/drivers/input/evdev.c
> @@ -422,10 +422,7 @@ static int evdev_release(struct inode *inode, struct 
> file *file)
>  
>       evdev_detach_client(evdev, client);
>  
> -     if (is_vmalloc_addr(client))
> -             vfree(client);
> -     else
> -             kfree(client);
> +     kvfree(client);
>  
>       evdev_close_device(evdev);
>  
> -- 
> 2.1.0
> 

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to