mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-30 06:06:35 -04:00
staging: media: atomisp: remove unnecessary else after return in atomisp_cmd.c
Remove unnecessary else clause after return statement as the else branch is not needed when the if branch always returns. Signed-off-by: Oskar Ray-Frayssinet <rayfraytech@gmail.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
This commit is contained in:
committed by
Sakari Ailus
parent
4d542f256c
commit
cede4f26b4
@@ -2032,8 +2032,8 @@ static unsigned int long copy_from_compatible(void *to, const void *from,
|
||||
{
|
||||
if (from_user)
|
||||
return copy_from_user(to, (void __user *)from, n);
|
||||
else
|
||||
memcpy(to, from, n);
|
||||
|
||||
memcpy(to, from, n);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user