Skip to contentSkip to conversation

parisc: Remove spurious if statement from raw_copy_from_user()

PATCH New John David Anglin 1 participant 1 message Aug 5, 2025 PA-RISC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parisc: Remove spurious if statement from raw_copy_from_user()

parisc: Remove spurious if statement from raw_copy_from_user()

Accidently introduced in commit 91428ca9320e.

---

arch/parisc/lib/memcpy.c +0 -1
index 69d65ffab312..03165c82dfdb 100644
@@ -41,7 +41,6 @@ unsigned long raw_copy_from_user(void *dst, const void __user *src,
 	mtsp(get_kernel_space(), SR_TEMP2);
 
 	/* Check region is user accessible */
-	if (start)
 	while (start < end) {
 		if (!prober_user(SR_TEMP1, start)) {
 			newlen = (start - (unsigned long) src);