Re: [PATCH v3 00/36] remove unnecessary null checks

2022-02-12 Thread Thomas Monjalon
09/02/2022 20:17, Stephen Hemminger: > While working on a new driver, noticed that some drivers always call > free routines (correct) and others conditionally call free routines > if not null (redundant check). The extra if(e != NULL) type check > is unneeded and adds extra code. Better to have a

[PATCH v3 00/36] remove unnecessary null checks

2022-02-09 Thread Stephen Hemminger
While working on a new driver, noticed that some drivers always call free routines (correct) and others conditionally call free routines if not null (redundant check). The extra if(e != NULL) type check is unneeded and adds extra code. Better to have all the code consistent. The Linux kernel has