]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: shmem: remove duplicate error validation
authorBaolin Wang <baolin.wang@linux.alibaba.com>
Fri, 7 Feb 2025 09:44:19 +0000 (17:44 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:49:44 +0000 (21:49 -0800)
commitd08316e57346e3794bf414a94d3055102b04e85d
tree0d1a487e6a692f9cc824d92e30f832e3a1f61610
parent9c0bef64be3697a9b0f5372a29f80e08bfc8bc18
mm: shmem: remove duplicate error validation

Remove duplicate error code checks for 'start' and 'end', as the
get_order_from_str() will only return -EINVAL if the cmdline string is
configured incorrectly.

Link: https://lkml.kernel.org/r/dfadaba4c8b24c5ae1467fe8b6744b654c65ec91.1738918357.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/shmem.c