mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
qca: Modify kstrtoint() function
This change modifies kstrtoint function to update the result in destination buffer and return zero on success. Change-Id: Ibdd9b36eed39d5e2ee3afc6f1609c1e35d5fb464 Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
This commit is contained in:
parent
f382f81aa1
commit
d40f554e9f
1 changed files with 2 additions and 1 deletions
|
|
@ -1438,7 +1438,8 @@ int kstrtoint(const char *s, unsigned int base, int *res)
|
|||
if (tmp != (unsigned long long)(int)tmp)
|
||||
return -ERANGE;
|
||||
|
||||
return (int)tmp;
|
||||
*res = (int)tmp;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue