[PATCH 2/5] erofs-utils: mkfs: drop dead code in -z parsing

Ahelenia Ziemiańska nabijaczleweli at nabijaczleweli.xyz
Sun Apr 9 21:56:31 AEST 2023


-z is specified as "z:".

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli at nabijaczleweli.xyz>
---
 mkfs/main.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/mkfs/main.c b/mkfs/main.c
index 94f51df..d20147c 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -276,11 +276,6 @@ static int mkfs_parse_options_cfg(int argc, char *argv[])
 				  long_options, NULL)) != -1) {
 		switch (opt) {
 		case 'z':
-			if (!optarg) {
-				cfg.c_compr_alg[0] = "(default)";
-				cfg.c_compr_level[0] = -1;
-				break;
-			}
 			i = mkfs_parse_compress_algs(optarg);
 			if (i)
 				return i;
-- 
2.30.2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linux-erofs/attachments/20230409/b68cae87/attachment.sig>


More information about the Linux-erofs mailing list