On Thu, 31 Oct 2024 07:47:51 +0000 王颢 <howard_w...@realsil.com.cn> wrote:
> Dear Stephen, > > I have modified the code related to braces in the latest patch. Recently, I > was reviewing the DPDK Coding Style and found the reason why I initially > removed the redundant braces. If symmetrical braces are required, it would be > better to update the DPDK Coding Style accordingly. > > in https://doc.dpdk.org/guides/contributing/coding_style.html > Braces that are not necessary should be left out. > > if (test) > stmt; > else if (bar) { > stmt; > stmt; > } else > stmt; > > Best Regards, > Howard Wang Thanks, the DPDK inherits DPDK from the Linux kernel, and the Linux kernel community sometimes changes and adds things.