Re: [PATCH v5 3/3] x86/sgx: Remove redundant if conditions in sgx_encl_create

2021-02-24 Thread Tianjia Zhang
On 2/16/21 4:29 PM, Jarkko Sakkinen wrote: On Tue, Feb 16, 2021 at 11:31:33AM +0800, Tianjia Zhang wrote: In this scenario, there is no case where va_page is NULL, and the error has been checked. The if-condition statement here is redundant, so remove the condition detection. Signed-off-by:

Re: [PATCH v5 3/3] x86/sgx: Remove redundant if conditions in sgx_encl_create

2021-02-16 Thread Jarkko Sakkinen
On Tue, Feb 16, 2021 at 11:31:33AM +0800, Tianjia Zhang wrote: > In this scenario, there is no case where va_page is NULL, and > the error has been checked. The if-condition statement here is > redundant, so remove the condition detection. > > Signed-off-by: Tianjia Zhang > Acked-by: Jarkko Sakki

[PATCH v5 3/3] x86/sgx: Remove redundant if conditions in sgx_encl_create

2021-02-15 Thread Tianjia Zhang
In this scenario, there is no case where va_page is NULL, and the error has been checked. The if-condition statement here is redundant, so remove the condition detection. Signed-off-by: Tianjia Zhang Acked-by: Jarkko Sakkinen --- arch/x86/kernel/cpu/sgx/ioctl.c | 7 --- 1 file changed, 4 in