Skip to contentSkip to conversation

driver thinkpad acpi : semantic patch (bool usage)

PATCH New Laurent Navet 1 participant 1 message Dec 17, 2012 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 driver thinkpad acpi : semantic patch (bool usage)

Bool initializations should use true and false. Bool tests don't need comparisons. Based on contributions from Joe Perches, Rusty Russell and Bruce W Allan.

The semantic patch that makes this output is available in scripts/coccinelle/misc/boolinit.cocci.

More information about semantic patching is available at
http://coccinelle.lip6.fr/

---
 drivers/platform/x86/thinkpad_acpi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/thinkpad_acpi.c +1 -1
index 75dd651..cb46b6a 100644
@@ -3728,7 +3728,7 @@ static void hotkey_notify(struct ibm_struct *ibm, u32 event)
 			if (tp_features.hotkey_wlsw &&
 					hkey == TP_HKEY_EV_RFKILL_CHANGED) {
 				tpacpi_send_radiosw_update();
-				send_acpi_ev = 0;
+				send_acpi_ev = false;
 				known_ev = true;
 				break;
 			}
Signature · 1 line
1.7.10.4