mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02: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:
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user