[RAMEN9610-21564]do_last(): fetch directory ->i_mode and ->i_uid before it's too...
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / lib / vsprintf.c
index 86c3385b9eb393a54b09cddcfcccef3ec257f8d2..0fe1a9c91d18031d3ece5a175d8e8fe3fc56a934 100644 (file)
@@ -584,7 +584,7 @@ static noinline_for_stack
 char *string(char *buf, char *end, const char *s, struct printf_spec spec)
 {
        int len = 0;
-       size_t lim = spec.precision;
+       int lim = spec.precision;
 
        if ((unsigned long)s < PAGE_SIZE)
                s = "(null)";
@@ -1392,9 +1392,6 @@ char *clock(char *buf, char *end, struct clk *clk, struct printf_spec spec,
                return string(buf, end, NULL, spec);
 
        switch (fmt[1]) {
-       case 'r':
-               return number(buf, end, clk_get_rate(clk), spec);
-
        case 'n':
        default:
 #ifdef CONFIG_COMMON_CLK