]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: Use IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO.
authorSean Fu <fxinrong@gmail.com>
Wed, 29 Apr 2020 04:04:13 +0000 (12:04 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 5 May 2020 15:56:07 +0000 (11:56 -0400)
commit89cc4555a1856d0b99ea7ef01da2f23a83a03caa
tree022e9e3a2ef8f41347694d18c08a16b8ea0fa7fc
parent93092db54a56839dcf794faf2b5757aba10297dd
workqueue: Use IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO.

Replace inline function PTR_ERR_OR_ZERO with IS_ERR and PTR_ERR to
remove redundant parameter definitions and checks.
Reduce code size.
Before:
   text    data     bss     dec     hex filename
  47510    5979     840   54329    d439 kernel/workqueue.o
After:
   text    data     bss     dec     hex filename
  47474    5979     840   54293    d415 kernel/workqueue.o

Signed-off-by: Sean Fu <fxinrong@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c