Re: [PATCH V2] util: Remove redundant checks in the openpty()

2021-09-15 Thread Laurent Vivier
Le 14/09/2021 à 09:43, Alex Chen a écrit : > Hi all, > > This patch has been reviewed by Peter. who can help merge it? > > Thanks, > Alex > > On 2020/11/2 18:55, AlexChen wrote: >> As we can see from the following function call stack, amaster and aslave >> can not be NULL: char_pty_open() -> qem

Re: [PATCH V2] util: Remove redundant checks in the openpty()

2021-09-14 Thread Alex Chen
Hi all, This patch has been reviewed by Peter. who can help merge it? Thanks, Alex On 2020/11/2 18:55, AlexChen wrote: > As we can see from the following function call stack, amaster and aslave > can not be NULL: char_pty_open() -> qemu_openpty_raw() -> openpty(). > In addition, according to the

[PATCH V2] util: Remove redundant checks in the openpty()

2020-11-02 Thread AlexChen
As we can see from the following function call stack, amaster and aslave can not be NULL: char_pty_open() -> qemu_openpty_raw() -> openpty(). In addition, according to the API specification for openpty(): https://www.gnu.org/software/libc/manual/html_node/Pseudo_002dTerminal-Pairs.html, the argumen