Skip to content

Commit

Permalink
staging: vc04_services: Removed unnecessary variable
Browse files Browse the repository at this point in the history
Removed unnecessary variable and used instead the parameter
that was already defined

Signed-off-by: Narcisa Ana Maria Vasile <narcisaanamaria12@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Narcisa Ana Maria Vasile authored and Greg Kroah-Hartman committed Mar 6, 2017
1 parent fa2ccd3 commit 372499b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 372499b

Please sign in to comment.