From: Oskar Ray-Frayssinet Date: Sun, 1 Mar 2026 22:30:38 +0000 (+0100) Subject: staging: media: atomisp: remove unnecessary else after return in atomisp_cmd.c X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=cede4f26b4df8b13dcfe3667b098eceb2ef26eb0;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Sakari Ailus --- diff --git a/drivers/staging/media/atomisp/pci/atomisp_cmd.c b/drivers/staging/media/atomisp/pci/atomisp_cmd.c index 7ccd4205ed1e..6174177eb869 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_cmd.c +++ b/drivers/staging/media/atomisp/pci/atomisp_cmd.c @@ -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; }