mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] staging: media: atomisp: Remove unnecessary else after return
@ 2026-07-04 12:01 Dileep Sankhla
  2026-07-04 13:45 ` Andy Shevchenko
  0 siblings, 1 reply; 8+ messages in thread
From: Dileep Sankhla @ 2026-07-04 12:01 UTC (permalink / raw)
  To: andy, hansg, mchehab
  Cc: sakari.ailus, gregkh, abdelrahmanfekry375, error27,
	dileepsankhla.ds, linux-kernel, linux-media, linux-staging

Remove unnecessary else clause after return statement as the else branch
is not needed when the if branch always returns.

Signed-off-by: Dileep Sankhla <dileepsankhla.ds@gmail.com>
---
 drivers/staging/media/atomisp/pci/hmm/hmm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/media/atomisp/pci/hmm/hmm.c b/drivers/staging/media/atomisp/pci/hmm/hmm.c
index f998b57f90c4..6ff77e053d5d 100644
--- a/drivers/staging/media/atomisp/pci/hmm/hmm.c
+++ b/drivers/staging/media/atomisp/pci/hmm/hmm.c
@@ -235,9 +235,8 @@ static int load_and_flush(ia_css_ptr virt, void *data, unsigned int bytes)
 		vptr = hmm_bo_vmap(bo, true);
 		if (!vptr)
 			return load_and_flush_by_kmap(virt, data, bytes);
-		else
-			vptr = vptr + (virt - bo->start);
 
+		vptr = vptr + (virt - bo->start);
 		memcpy(data, vptr, bytes);
 		clflush_cache_range(vptr, bytes);
 		hmm_bo_vunmap(bo);
-- 
2.43.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-07-06 10:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-04 12:01 [PATCH] staging: media: atomisp: Remove unnecessary else after return Dileep Sankhla
2026-07-04 13:45 ` Andy Shevchenko
2026-07-06  5:20   ` Dileep Sankhla
2026-07-06  5:28     ` Andy Shevchenko
2026-07-06  7:34       ` Dileep Sankhla
2026-07-06  9:25         ` Andy Shevchenko
2026-07-06  9:58           ` Dileep Sankhla
2026-07-06 10:50         ` Dileep Sankhla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®