Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a841b64d authored by Markus Elfring's avatar Markus Elfring Committed by Dave Chinner
Browse files

XFS: Use a signed return type for suffix_kstrtoint()



The return type "unsigned long" was used by the suffix_kstrtoint()
function even though it will eventually return a negative error code.
Improve this implementation detail by using the type "int" instead.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Reviewed-by: default avatarEric Sandeen <sandeen@redhat.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent c5ab131b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ static const match_table_t tokens = {
};


STATIC unsigned long
STATIC int
suffix_kstrtoint(char *s, unsigned int base, int *res)
{
	int	last, shift_left_factor = 0, _res;