Skip to content

Commit 2935777

Browse files
soleenrppt
authored andcommitted
liveupdate: Remove unused ser field from struct luo_session
The ser field in struct luo_session was intended to point to the serialized data for a session, but it was never actually utilized in the implementation. All serialization and deserialization logic consistently uses the pointers maintained in struct luo_session_header. Remove the dead field to clean up the structure. Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Reviewed-by: Pratyush Yadav (Google) <pratyush@kernel.org> Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com> Link: https://patch.msgid.link/20260527202737.1345192-6-pasha.tatashin@soleen.com Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
1 parent 291dcd3 commit 2935777

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

kernel/liveupdate/luo_internal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ struct luo_file_set {
5959
* struct luo_session - Represents an active or incoming Live Update session.
6060
* @name: A unique name for this session, used for identification and
6161
* retrieval.
62-
* @ser: Pointer to the serialized data for this session.
6362
* @list: A list_head member used to link this session into a global list
6463
* of either outgoing (to be preserved) or incoming (restored from
6564
* previous kernel) sessions.
@@ -70,7 +69,6 @@ struct luo_file_set {
7069
*/
7170
struct luo_session {
7271
char name[LIVEUPDATE_SESSION_NAME_LENGTH];
73-
struct luo_session_ser *ser;
7472
struct list_head list;
7573
bool retrieved;
7674
struct luo_file_set file_set;

0 commit comments

Comments
 (0)