staging: csr: sme_blocking.c: remove braces around single statement blocks
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / kernel / sys.c
index 01865c6fb6a0c4739a18a5f4b746a5b8da038680..e6e0ece5f6a04401506d62fb602d7034d4273fe1 100644 (file)
@@ -1284,7 +1284,7 @@ static int override_release(char __user *release, size_t len)
                        rest++;
                }
                v = ((LINUX_VERSION_CODE >> 8) & 0xff) + 40;
-               copy = min(sizeof(buf), max_t(size_t, 1, len));
+               copy = clamp_t(size_t, len, 1, sizeof(buf));
                copy = scnprintf(buf, copy, "2.6.%u%s", v, rest);
                ret = copy_to_user(release, buf, copy + 1);
        }