[PATCH] Video: fbdev: Remove impossible condition.

2016-11-11 Thread Sachin Shukla
From: "Sachin Shukla" xoffset and yoffset of struct fb_var_screeninfo are unsigned and so they can never be less than 0. Signed-off-by: Sachin Shukla --- drivers/video/fbdev/amifb.c |8 +++- drivers/video/fbdev/fsl-diu-fb.c |9 + 2 files changed, 4 inserti

[PATCH] Kernel: Improvement in code readability when memdup_user_nul() fails.

2016-11-11 Thread Sachin Shukla
From: "Sachin Shukla" There is no need to call kfree() if memdup_user_nul() fails, as no memory was allocated and the error in the error-valued pointer should be returned. Signed-off-by: Sachin Shukla --- kernel/user_namespace.c | 25 ++--- 1 file changed, 14

[PATCH] Block: mtip32xx: Improvement in code readability when memdup_user() fails.

2016-11-11 Thread Sachin Shukla
From: "Sachin Shukla" There is no need to call kfree() if memdup_user() fails, as no memory was allocated and the error in the error-valued pointer should be returned. Signed-off-by: Sachin Shukla --- drivers/block/mtip32xx/mtip32xx.c | 14 +- 1 file changed, 5 insert

[PATCH] Fs: Improvement in code readability when memdup_user()fails.

2016-11-11 Thread Sachin Shukla
From: "Sachin Shukla" There is no need to call kfree() if memdup_user() fails, as no memory was allocated and the error in the error-valued pointer should be returned. Signed-off-by: Sachin Shukla --- fs/ioctl.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff