From: Amitoj Kaur Chawla Date: Thu, 15 Oct 2015 08:10:08 +0000 (+0530) Subject: staging: media: lirc: Remove useless initialisation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3bf3cdee6368a0093584f021aaded582427048dd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: media: lirc: Remove useless initialisation Remove intialisation of a variable that is immediately reassigned. The semantic patch used to find this is: // @@ type T; identifier x; constant C; expression e; @@ T x - = C ; x = e; // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/media/lirc/lirc_sasem.c b/drivers/staging/media/lirc/lirc_sasem.c index d3dedb831dee..bc78da014c33 100644 --- a/drivers/staging/media/lirc/lirc_sasem.c +++ b/drivers/staging/media/lirc/lirc_sasem.c @@ -244,7 +244,7 @@ exit: */ static long vfd_ioctl(struct file *file, unsigned cmd, unsigned long arg) { - struct sasem_context *context = NULL; + struct sasem_context *context; context = (struct sasem_context *) file->private_data;