mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
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: Markus Elfring <elfring@users.sourceforge.net> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
parent
c5ab131ba0
commit
a841b64df2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue