From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Fri, 10 Jan 2020 17:42:24 +0100 Subject: [LTP] [PATCH v2] syscalls/capget02: remove useless getpid() In-Reply-To: <20200110130029.GB25704@x230> References: <1578554765-30025-1-git-send-email-xuyang2018.jy@cn.fujitsu.com> <20200110130029.GB25704@x230> Message-ID: <20200110164224.GA305583@x230> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it 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 > > ----------------- > > v1-v2: > > remove pid = 0 assignment, because it has been initialized as 0. > > add comment > Reviewed-by: Petr Vorel > Note, waiting for merge before current git get's fixed. > (v2 of https://patchwork.ozlabs.org/patch/1220180/). Thanks for your patch, merged. Kind regards, Petr