if (unlikely(src->len > dst->len))
return -E2BIG;
switch (mode) {
case 3: /* The both are plain. */
memcpy_fast(dst->data, src->data, min(src->len, dst->len));
break;
If the condition (src->len > dst->len) is true, it returns an error. Since the condition guarantees that src->len <= dst->len, min(src->len, dst->len) can be simplified to src->len.
From tfw_strcpy() function in fw/str.c:702:
If the condition (src->len > dst->len) is true, it returns an error. Since the condition guarantees that src->len <= dst->len, min(src->len, dst->len) can be simplified to src->len.