aboutsummaryrefslogtreecommitdiffstats
path: root/fs/squashfs/decompressor.c
diff options
context:
space:
mode:
authorPhillip Lougher <phillip@lougher.demon.co.uk>2011-01-05 13:23:53 -0500
committerPhillip Lougher <phillip@lougher.demon.co.uk>2011-01-13 16:38:46 -0500
commit01a678c5a2f41663b8faf03d17e2bbdbf44158a9 (patch)
treeec93dc906fae7acfb7355bdc7ea690cde702ad83 /fs/squashfs/decompressor.c
parent8fcd97216f45b1691f8f91f35cc108d06e0bfca8 (diff)
Squashfs: simplify CONFIG_SQUASHFS_LZO handling
Get rid of messy repeated #if(n)def CONFIG_SQUASHFS_LZO code in decompressor.c Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
Diffstat (limited to 'fs/squashfs/decompressor.c')
-rw-r--r--fs/squashfs/decompressor.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/squashfs/decompressor.c b/fs/squashfs/decompressor.c
index 50b22d330cec..a5940e54c4dd 100644
--- a/fs/squashfs/decompressor.c
+++ b/fs/squashfs/decompressor.c
@@ -40,7 +40,7 @@ static const struct squashfs_decompressor squashfs_lzma_unsupported_comp_ops = {
40}; 40};
41 41
42#ifndef CONFIG_SQUASHFS_LZO 42#ifndef CONFIG_SQUASHFS_LZO
43static const struct squashfs_decompressor squashfs_lzo_unsupported_comp_ops = { 43static const struct squashfs_decompressor squashfs_lzo_comp_ops = {
44 NULL, NULL, NULL, LZO_COMPRESSION, "lzo", 0 44 NULL, NULL, NULL, LZO_COMPRESSION, "lzo", 0
45}; 45};
46#endif 46#endif
@@ -57,13 +57,9 @@ static const struct squashfs_decompressor squashfs_unknown_comp_ops = {
57 57
58static const struct squashfs_decompressor *decompressor[] = { 58static const struct squashfs_decompressor *decompressor[] = {
59 &squashfs_zlib_comp_ops, 59 &squashfs_zlib_comp_ops,
60 &squashfs_lzma_unsupported_comp_ops,
61#ifdef CONFIG_SQUASHFS_LZO
62 &squashfs_lzo_comp_ops, 60 &squashfs_lzo_comp_ops,
63#else
64 &squashfs_lzo_unsupported_comp_ops,
65#endif
66 &squashfs_xz_comp_ops, 61 &squashfs_xz_comp_ops,
62 &squashfs_lzma_unsupported_comp_ops,
67 &squashfs_unknown_comp_ops 63 &squashfs_unknown_comp_ops
68}; 64};
69 65