Skip to content

Commit

Permalink
lib: make lib/842 decompress functions static
Browse files Browse the repository at this point in the history
Make the do_index and do_op functions static.

They are used only internally by the 842 decompression function,
and should be static.

Reported-By: Fengguang Wu <[email protected]>
Signed-off-by: Fengguang Wu <[email protected]>
Signed-off-by: Dan Streetman <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
ddstreet authored and herbertx committed May 13, 2015
1 parent 608f37d commit f7ead7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/842/842_decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static int __do_index(struct sw842_param *p, u8 size, u8 bits, u64 fsize)
return 0;
}

int do_index(struct sw842_param *p, u8 n)
static int do_index(struct sw842_param *p, u8 n)
{
switch (n) {
case 2:
Expand All @@ -228,7 +228,7 @@ int do_index(struct sw842_param *p, u8 n)
}
}

int do_op(struct sw842_param *p, u8 o)
static int do_op(struct sw842_param *p, u8 o)
{
int i, ret = 0;

Expand Down

0 comments on commit f7ead7b

Please sign in to comment.