mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
udev-builtin-keyboard: drop unnecessary {}
This commit is contained in:
parent
1001167ca5
commit
04d54d5011
@ -66,9 +66,9 @@ static int map_keycode(sd_device *dev, int fd, int scancode, const char *keycode
|
|||||||
|
|
||||||
/* translate identifier to key code */
|
/* translate identifier to key code */
|
||||||
k = keyboard_lookup_key(keycode, strlen(keycode));
|
k = keyboard_lookup_key(keycode, strlen(keycode));
|
||||||
if (k) {
|
if (k)
|
||||||
keycode_num = k->id;
|
keycode_num = k->id;
|
||||||
} else {
|
else {
|
||||||
/* check if it's a numeric code already */
|
/* check if it's a numeric code already */
|
||||||
r = safe_atou(keycode, &keycode_num);
|
r = safe_atou(keycode, &keycode_num);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user