[LTP] [PATCH v2] syscalls/capget02: remove useless getpid()

Petr Vorel pvorel@suse.cz
Fri Jan 10 14:00:29 CET 2020


Hi Xu,

> Since pid=0 returns the capabilities for the calling thread,
> we can remove getpid. Also we can cover this test point.

> Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
> -----------------
> v1-v2:
> remove pid = 0 assignment, because it has been initialized as 0.
> add comment
Reviewed-by: Petr Vorel <pvorel@suse.cz>

Note, waiting for merge before current git get's fixed.
(v2 of https://patchwork.ozlabs.org/patch/1220180/).


Kind regards,
Petr


More information about the ltp mailing list