]> git.ipfire.org Git - thirdparty/linux.git/commit
PM: hibernate: Drop NULL pointer checks before acomp_request_free()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 Jan 2026 20:03:57 +0000 (21:03 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 28 Jan 2026 21:12:55 +0000 (22:12 +0100)
commit1081c1649da989ef9cbc01ffa99babc190df6077
tree174bcc0709b53dd9e7b920821fe1077d16acbeae
parent2a7151942e8b1c92f3b71c0c5cb385df9a3df5e8
PM: hibernate: Drop NULL pointer checks before acomp_request_free()

Since acomp_request_free() checks its argument against NULL, the NULL
pointer checks before calling it added by commit ("7966cf0ebe32 PM:
hibernate: Fix crash when freeing invalid crypto compressor") are
redundant, so drop them.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/6233709.lOV4Wx5bFT@rafael.j.wysocki
kernel/power/swap.c