mm/mprotect: remove the redundant initialization for error
authorXiu Jianfeng <xiujianfeng@huawei.com>
Mon, 4 Jul 2022 11:41:12 +0000 (19:41 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:14:47 +0000 (17:14 -0700)
commit48725bbc0c3828bb9e36b632c6bf0326ed292ffb
tree0949f253bf4dc9390362beb4bc9cc1a204489c4b
parente75858b904b44510b7f4a0f8f1c08dfc0bf9009b
mm/mprotect: remove the redundant initialization for error

The variable error will be assigned correctly before it is used, the
initialization is redundant, so remove it.

Link: https://lkml.kernel.org/r/20220704114112.163112-1-xiujianfeng@huawei.com
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mprotect.c