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:
Pavithra Palanisamy 2018-08-02 17:53:48 +05:30
parent f382f81aa1
commit d40f554e9f

View file

@ -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;
}
/**