kstrto*() functions return proper error code.
Do propogate it to the user.
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 static int get_next_ulong(char **str_p, unsigned long *val, char *sep, int base)
 {
        char *p_val;
-       int ret;
 
        if (!str_p || !(*str_p))
                return -EINVAL;
        if (!p_val)
                return -EINVAL;
 
-       ret = kstrtoul(p_val, base, val);
-       if (ret)
-               return -EINVAL;
-
-       return 0;
+       return kstrtoul(p_val, base, val);
 }
 
 int fbtft_gamma_parse_str(struct fbtft_par *par, unsigned long *curves,