staging: atomisp: remove unnecessary else after return in atomisp_cmd.c
Subsystems (4)
PATCH v2 1/1 staging: 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 <[email protected]>
---
Changes in v2:
- Fix typo 'alsways' -> 'always' in commit message
- Add blank line after return statement
drivers/staging/media/atomisp/pci/atomisp_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/media/atomisp/pci/atomisp_cmd.c +2 -2
@@ -2035,8 +2035,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 ; }
Signature · 1 line
2.43.0