Commit 6784ed98 authored by Alexander Aring's avatar Alexander Aring Committed by David Teigland
Browse files

dlm: return -ENOENT if no comm was found



Currently if no comm can be found dlm_comm_seq() returns -EEXIST which
means entry already exists for a lookup it makes no sense to return
-EEXIST. We change it to -ENOENT. There is no user that will evaluate
the return value on a specific value so this should be fine.

Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 57cdd1a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -935,7 +935,7 @@ int dlm_comm_seq(int nodeid, uint32_t *seq, bool locked)
		mutex_unlock(&clusters_root.subsys.su_mutex);
	}
	if (!cm)
		return -EEXIST;
		return -ENOENT;

	*seq = cm->seq;
	put_comm(cm);