From: Narcisa Ana Maria Vasile Date: Wed, 1 Mar 2017 00:40:59 +0000 (+0200) Subject: staging: vc04_services: Removed unnecessary variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=372499b589ae5ec38d3dec88b72f2bde3b3790d4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: vc04_services: Removed unnecessary variable Removed unnecessary variable and used instead the parameter that was already defined Signed-off-by: Narcisa Ana Maria Vasile Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c index 281538776576..ff0a1ff95b54 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c @@ -755,9 +755,7 @@ memcpy_copy_callback( void *context, void *dest, size_t offset, size_t maxsize) { - void *src = context; - - memcpy(dest + offset, src + offset, maxsize); + memcpy(dest + offset, context + offset, maxsize); return maxsize; }