Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
}