On Wed, 22 Mar 2023 13:34:12 +0200 Bing Zhao <bi...@nvidia.com> wrote:
> + tail_nl = strchr(port_name, '\r'); > + if (tail_nl) > + *tail_nl = '\0'; This is a file provided by Linux kernel, there is no way it could have a CR character.
On Wed, 22 Mar 2023 13:34:12 +0200 Bing Zhao <bi...@nvidia.com> wrote:
> + tail_nl = strchr(port_name, '\r'); > + if (tail_nl) > + *tail_nl = '\0'; This is a file provided by Linux kernel, there is no way it could have a CR character.