Explorar o código

HID: apple: swap_opt_cmd is already zero-initialized

Global static variable is already zero-initialized.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Jiri Kosina %!s(int64=11) %!d(string=hai) anos
pai
achega
a94c79bdc9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/hid/hid-apple.c

+ 1 - 1
drivers/hid/hid-apple.c

@@ -46,7 +46,7 @@ module_param(iso_layout, uint, 0644);
 MODULE_PARM_DESC(iso_layout, "Enable/Disable hardcoded ISO-layout of the keyboard. "
 		"(0 = disabled, [1] = enabled)");
 
-static unsigned int swap_opt_cmd = 0;
+static unsigned int swap_opt_cmd;
 module_param(swap_opt_cmd, uint, 0644);
 MODULE_PARM_DESC(swap_opt_cmd, "Swap the Option (\"Alt\") and Command (\"Flag\") keys. "
 		"(For people who want to keep Windows PC keyboard muscle memory. "