]> git.baikalelectronics.ru Git - kernel.git/commit
TOMOYO: Reduce lines by using common path for addition and deletion.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Sun, 7 Feb 2010 11:23:59 +0000 (20:23 +0900)
committerJames Morris <jmorris@namei.org>
Thu, 11 Feb 2010 06:09:45 +0000 (17:09 +1100)
commitda4e831e1efe7ff3489594832d2864edb1ee8de8
tree39fb8dfd34a84b928d18523da5dcebc5b25cb634
parent7d88666dd69e0f78ec4d9206f345169f5db750fb
TOMOYO: Reduce lines by using common path for addition and deletion.

Since the codes for adding an entry and removing an entry are similar, we can
save some lines by using "if (is_delete) { ... } else { ... }" branches.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/tomoyo/common.c
security/tomoyo/domain.c
security/tomoyo/file.c