]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f272564f39df52199661913996b9188ea0f286c
tree0949f253bf4dc9390362beb4bc9cc1a204489c4b
parent8d3bbcfb65dac35a70f2ad7c0ea3fa3fa5e55f6e
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