Skip to contentSkip to conversation

ipc-sem-remove-redundant-assignments.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message May 10, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: ipc/sem: remove redundant assignments
has been removed from the -mm tree. Its filename was
ipc-sem-remove-redundant-assignments.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Michal Orzel <[email protected]>
Subject: ipc/sem: remove redundant assignments

Get rid of redundant assignments which end up in values not being read either because they are overwritten or the function ends.

Reported by clang-tidy [deadcode.DeadStores]

---

 ipc/sem.c |    2 --
 1 file changed, 2 deletions(-)
ipc/sem.c renamed from ipc/sem.c~ipc-sem-remove-redundant-assignments +0 -2
@@ -766,7 +766,6 @@ static int perform_atomic_semop(struct s
 	for (sop = sops; sop < sops + nsops; sop++) {
 		curr = &sma->sems[sop->sem_num];
 		sem_op = sop->sem_op;
-		result = curr->semval;
 
 		if (sop->sem_flg & SEM_UNDO) {
 			int undo = un->semadj[sop->sem_num] - sem_op;
@@ -1430,7 +1429,6 @@ static int semctl_main(struct ipc_namesp
 	if (err)
 		goto out_rcu_wakeup;
 
-	err = -EACCES;
 	switch (cmd) {
 	case GETALL:
 	{

_

Patches currently in -mm which might be from [email protected] are