Skip to content

Commit

Permalink
Deleted a redundant check added in a prior commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
punesemu committed Aug 2, 2024
1 parent e8ab38f commit cd5df74
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/core/jstick.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd5df74

Please sign in to comment.