浏览代码

HID: microsoft: no fallthrough in MS ergonomy 0xff05 usage

For 0xff05 usage in MS ergonomy keyboard quirk, we are falling through
and returning 0 instread of properly (because we've performed new mapping)
returning 1. Fix that.

Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Jiri Kosina 12 年之前
父节点
当前提交
b2b98ea87a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/hid/hid-microsoft.c

+ 1 - 0
drivers/hid/hid-microsoft.c

@@ -73,6 +73,7 @@ static int ms_ergonomy_kb_quirk(struct hid_input *hi, struct hid_usage *usage,
 		set_bit(KEY_F16, input->keybit);
 		set_bit(KEY_F16, input->keybit);
 		set_bit(KEY_F17, input->keybit);
 		set_bit(KEY_F17, input->keybit);
 		set_bit(KEY_F18, input->keybit);
 		set_bit(KEY_F18, input->keybit);
+		break;
 	default:
 	default:
 		return 0;
 		return 0;
 	}
 	}