1
1
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:
David Tardon 2021-06-23 17:15:47 +02:00
parent 1001167ca5
commit 04d54d5011

View File

@ -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)