Re: [PATCH v2] bpf: selftests: global_funcs: check err_str before strstr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 21, 2020 at 12:34 AM Alexei Starovoitov
<alexei.starovoitov@xxxxxxxxx> wrote:

[...]

> > -       if (strstr(log_buf, err_str) == 0)
> > +       if (err_str != NULL && strstr(log_buf, err_str) == 0)
>
> I got rid of '!= NULL', since it doesn't fit kernel coding style and
> applied to bpf tree. Thanks

Thank you!

-- 
WBR, Yauheni




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux