]> 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)
commit6ff7f1226c2b48d67df00c5c1809f0b8ac3f376e
tree0949f253bf4dc9390362beb4bc9cc1a204489c4b
parentbbde5d77e04a802633b3486accc108178e14eaa7
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