aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorXin Hao <[email protected]>2022-09-15 22:22:36 +0800
committerAndrew Morton <[email protected]>2022-10-03 14:03:26 -0700
commit871f697b494b04f8d78cc090e49b416062d23a10 (patch)
tree51e7a0531609eadf3b74c5d899bf6394900e6072 /net/lapb/lapb_timer.c
parentce732a7520b093091c345cba1b84542d1abd83ed (diff)
mm/damon/sysfs: avoid call damon_target_has_pid() repeatedly
In damon_sysfs_destroy_targets(), we call damon_target_has_pid() to check whether the 'ctx' include a valid pid, but there no need to call damon_target_has_pid() to check repeatedly, just need call it once. [[email protected]: more simplified code calls damon_target_has_pid()] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Xin Hao <[email protected]> Reviewed-by: SeongJae Park <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions