Re: [PATCH] Input: evdev: correct handling of memory allocation failure of evdev_client

2016-01-27 Thread Dmitry Torokhov
Hi Aniroop, On Mon, Jan 25, 2016 at 11:20:05PM +0530, Aniroop Mathur wrote: > Lets fix twice checking of memory allocation failure of evdev_client > structure when allocated successfully. I think compiler will take care of optimizing away the 2nd check, so I'd leave the code as is. Thanks. > >

[PATCH] Input: evdev: correct handling of memory allocation failure of evdev_client

2016-01-25 Thread Aniroop Mathur
Lets fix twice checking of memory allocation failure of evdev_client structure when allocated successfully. Signed-off-by: Aniroop Mathur --- drivers/input/evdev.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index e9ae3