Commit 1a0ccece authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: allow passing NULL to input_free_device()

Many drivers rely on input_free_device() behaving like kfree().
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent f11a7c09
......@@ -1016,6 +1016,7 @@ static inline void input_put_device(struct input_dev *dev)
static inline void input_free_device(struct input_dev *dev)
{
if (dev)
input_put_device(dev);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment