Re: [PATCH v3 1/6] ACPI: AC: Remove unnecessary checks

2023-10-13 Thread Rafael J. Wysocki
On Wed, Oct 11, 2023 at 10:34 AM Michal Wilczynski wrote: > > Remove unnecessary checks for NULL for variables that can't be NULL at > the point they're checked for it. Defensive programming is discouraged > in the kernel. > > Signed-off-by: Michal Wilczynski > --- > drivers/acpi/ac.c | 27

[PATCH v3 1/6] ACPI: AC: Remove unnecessary checks

2023-10-11 Thread Michal Wilczynski
Remove unnecessary checks for NULL for variables that can't be NULL at the point they're checked for it. Defensive programming is discouraged in the kernel. Signed-off-by: Michal Wilczynski --- drivers/acpi/ac.c | 27 --- 1 file changed, 4 insertions(+), 23 deletions(-)