mm/page_isolation: fix clang deadcode warning
authorMaria Yu <quic_aiquny@quicinc.com>
Fri, 21 Oct 2022 10:15:55 +0000 (18:15 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 28 Oct 2022 20:37:22 +0000 (13:37 -0700)
commitfba4eaf93164a6a6eb3cc12a3391b06f6187aa20
tree5c4458b68da7e8a7cd4437812a040e5852bc6c54
parentbb2282cf01fcae7379314dc026f3b534c83c186c
mm/page_isolation: fix clang deadcode warning

When !CONFIG_VM_BUG_ON, there is warning of
clang-analyzer-deadcode.DeadStores:
Value stored to 'mt' during its initialization is never read.

Link: https://lkml.kernel.org/r/20221021101555.7992-2-quic_aiquny@quicinc.com
Signed-off-by: Maria Yu <quic_aiquny@quicinc.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Doug Berger <opendmb@gmail.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Zi Yan <ziy@nvidia.com>
Cc: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_isolation.c