]> www.infradead.org Git - users/jedix/linux-maple.git/commit
powercap: idle_inject: Simplify if condition
authorThorsten Blum <thorsten.blum@toblux.com>
Wed, 5 Jun 2024 13:58:42 +0000 (15:58 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 7 Jun 2024 18:57:20 +0000 (20:57 +0200)
commite5753da31c61a049113be99d27e9f46755484577
tree8ebce86472006da34aaa9b587ec626477062f8dd
parentb9064fb834bf50789819cfcc1449b3197ae43b68
powercap: idle_inject: Simplify if condition

The if condition !A || A && B can be simplified to !A || B.

Fixes the following Coccinelle/coccicheck warning reported by
excluded_middle.cocci:

WARNING !A || A && B is equivalent to !A || B

Compile-tested only.

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/powercap/idle_inject.c