]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib/decompress: use designated initializers for struct compress_format
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 10 Sep 2025 23:23:51 +0000 (01:23 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 23 Sep 2025 03:10:58 +0000 (20:10 -0700)
commit04ae01a80df616b0998bb6a81c8db310f3aef102
tree1e32ff34f2ca32c43c661fc6986b3ba1c1e3a28f
parent5b86af1ded2d90402477dce6d4cf8dfa95cca6ac
lib/decompress: use designated initializers for struct compress_format

Switch 'compressed_formats[]' to the more modern and flexible designated
initializers.  This improves readability and allows struct fields to be
reordered.  Also use a more concise sentinel marker.

Remove the curly braces around the for loop while we're at it.

No functional changes intended.

Link: https://lkml.kernel.org/r/20250910232350.1308206-2-thorsten.blum@linux.dev
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Cc: David Sterba <dsterba@suse.com>
Cc: Nick Terrell <terrelln@fb.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/decompress.c