From cd5df745453bd8794b33a0d249577b56eedb1b91 Mon Sep 17 00:00:00 2001 From: Fabio Cavallo Date: Fri, 2 Aug 2024 08:54:38 +0200 Subject: [PATCH] Deleted a redundant check added in a prior commit. --- src/core/jstick.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/core/jstick.c b/src/core/jstick.c index 358c84a5b..8d2bf2487 100644 --- a/src/core/jstick.c +++ b/src/core/jstick.c @@ -155,15 +155,13 @@ void js_guid_create(_js_device *jdev) { (*(word + 6)) = jdev->usb.version; (*(word + 7)) = jdev->usb.version - 400; #if defined (__linux__) - if (ustrlen(jdev->uniq)) { - BYTE *byte = (BYTE *)&word[2]; - int idx = 0; - - for (const char *s = jdev->uniq; *s; ++s) { - byte[idx++] ^= *s; - if (idx > 11) { - idx = 0; - } + BYTE *byte = (BYTE *)&word[2]; + int idx = 0; + + for (const char *s = jdev->uniq; *s; ++s) { + byte[idx++] ^= *s; + if (idx > 11) { + idx = 0; } } #endif