From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-171.mta0.migadu.com (out-171.mta0.migadu.com [91.218.175.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E515D27F4F5 for ; Tue, 14 Jul 2026 07:42:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784014977; cv=none; b=GM1zHzj5WhCb9rQ4kJRDKZMgsDsuDWSZOZ5N7tMEo5sZscrXVH8GwIK9jbL7I20Dg1sbYABO1+sTWWBnJv3O0BQ4K3ycEDcjqw153f942NtnffppE4aQ7VS4eDPaFhhKrb50EBMtxzCPRdQd//So2ACOSLE66Dvbl0bvfZ5NYOg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784014977; c=relaxed/simple; bh=BRlQi25yomQpEoiUt2I6ZZXikp2PITIWSaDxhKXt+30=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=T0AxXVfzEBDHtT7Qi37OQP5FMDbWhQapLQwZNpB/pJRpaYUpH/+gLi6Ya/BpWL+dmal/6KXTDctkWDDcxYc7h+7+tosQY/UychzW87H/olwZIg96kLU+QwuXeUk+qIclplDcqym9PRBSIlM/UBid2JYxZjKmxfiSX72RRJV60zU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=pOyU43kF; arc=none smtp.client-ip=91.218.175.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="pOyU43kF" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1784014974; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=q7SEVSys5QAUmgGUdqE7IKuJhdTvp30A0KvQy0Ga2Lk=; b=pOyU43kF9gNfWh0mrkgnQ1Cp0dKUkdtwkqD4POScJRTOsWexaoA+tk/YYEVsFycSi68Cnx GS7/zM+9ImIps41AIPbyFLh4lJNP2LSJ9hK77YnGLAwfEIK01yKU7uxwMoaaldqIvIi3oc 75JtpUV9wlYNXQ+f/dtNyC/m7+FDabo= From: Hongfu Li To: pasha.tatashin@soleen.com, rppt@kernel.org, pratyush@kernel.org Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Hongfu Li Subject: [PATCH] liveupdate: Remove redundant INIT_LIST_HEAD in luo_session_alloc Date: Tue, 14 Jul 2026 15:40:56 +0800 Message-ID: <20260714074056.95335-1-hongfu.li@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: Hongfu Li luo_session_alloc() calls INIT_LIST_HEAD(&session->file_set.files_list) followed immediately by luo_file_set_init(), which also performs INIT_LIST_HEAD() on the same list head. Remove the duplicate call. Signed-off-by: Hongfu Li --- kernel/liveupdate/luo_session.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/liveupdate/luo_session.c b/kernel/liveupdate/luo_session.c index b79b2a488974..90ae3810e6cf 100644 --- a/kernel/liveupdate/luo_session.c +++ b/kernel/liveupdate/luo_session.c @@ -154,7 +154,6 @@ static struct luo_session *luo_session_alloc(const char *name) return ERR_PTR(-ENOMEM); strscpy(session->name, name, sizeof(session->name)); - INIT_LIST_HEAD(&session->file_set.files_list); luo_file_set_init(&session->file_set); INIT_LIST_HEAD(&session->list); mutex_init(&session->mutex); -- 2.54.0